C# Class ProjectileMissile, SpaceCOG-Prototype

Inheritance: MonoBehaviour
Show file Open project: kalby/SpaceCOG-Prototype

Public Properties

Property Type Description
damage int
explodeAnimation GameObject
missileLaunchSpeed float
points int
range float

Public Methods

Method Description
FixedUpdate ( ) : void
OnTriggerEnter ( Collider collidedWith ) : void
OnTriggerExit ( Collider other ) : void
SetPlayer ( GameObject player ) : void
SetRange ( float newRange ) : void
Start ( ) : void
Update ( ) : void
acquireTarget ( ) : void

Private Methods

Method Description
PlayClipAt ( AudioClip clip, Vector3 pos ) : AudioSource

Method Details

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnTriggerEnter() public method

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

OnTriggerExit() public method

public OnTriggerExit ( Collider other ) : void
other Collider
return void

SetPlayer() public method

public SetPlayer ( GameObject player ) : void
player GameObject
return void

SetRange() public method

public SetRange ( float newRange ) : void
newRange float
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

acquireTarget() public method

public acquireTarget ( ) : void
return void

Property Details

damage public property

public int damage
return int

explodeAnimation public property

public GameObject explodeAnimation
return GameObject

missileLaunchSpeed public property

public float missileLaunchSpeed
return float

points public property

public int points
return int

range public property

public float range
return float