C# Class bullet, Project-ROB

Inheritance: MonoBehaviour
Show file Open project: spooty89/Project-ROB Class Usage Examples

Public Properties

Property Type Description
direction Vector3
maxTime float
shooter GameObject
speed float

Private Properties

Property Type Description

Public Methods

Method Description
Awake ( ) : void
Hit ( GameObject hit ) : void
OnCollisionEnter ( Collision hit ) : void
OnDestroy ( ) : void
OnTriggerEnter ( Collider hit ) : void
Update ( ) : void
bullet ( Vector3 Direction, GameObject Shooter ) : System.Collections
bullet ( Vector3 Direction, float Speed, GameObject Shooter ) : System.Collections
bullet ( Vector3 Direction, float Speed, float MaxTime, GameObject Shooter ) : System.Collections

Method Details

Awake() public method

public Awake ( ) : void
return void

Hit() public method

public Hit ( GameObject hit ) : void
hit GameObject
return void

OnCollisionEnter() public method

public OnCollisionEnter ( Collision hit ) : void
hit Collision
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider hit ) : void
hit Collider
return void

Update() public method

public Update ( ) : void
return void

bullet() public method

public bullet ( Vector3 Direction, GameObject Shooter ) : System.Collections
Direction Vector3
Shooter GameObject
return System.Collections

bullet() public method

public bullet ( Vector3 Direction, float Speed, GameObject Shooter ) : System.Collections
Direction Vector3
Speed float
Shooter GameObject
return System.Collections

bullet() public method

public bullet ( Vector3 Direction, float Speed, float MaxTime, GameObject Shooter ) : System.Collections
Direction Vector3
Speed float
MaxTime float
Shooter GameObject
return System.Collections

Property Details

direction public property

public Vector3 direction
return Vector3

maxTime public property

public float maxTime
return float

shooter public property

public GameObject shooter
return GameObject

speed public property

public float speed
return float