Property | Type | Description | |
---|---|---|---|
onDestroy | System.Action | ||
onImpact | System.Action |
Method | Description | |
---|---|---|
Awake ( ) : void |
When Object is Awake, it will be automatically disabled When Fired the projectile, will be cloned and enabled
|
|
Destroy ( ) : void |
Destroy Projectile waiting destroyDelay if needed
|
|
Fire ( Vector3 position ) : |
Clone the projectile, activate, add it to UpdateManager and return :)
|
|
LatePlatformerUpdate ( float delta ) : void |
Do nothing use PlatformerUpdate instead
|
|
OnTriggerEnter2D ( |
When collide with something, check the mask, then check if it's damageable, and Destroy
|
|
PlatformerUpdate ( float delta ) : void |
Move projectile accordingly
|
Method | Description | |
---|---|---|
_Destroy ( ) : void |
Real destroy method
|
public Fire ( Vector3 position ) : |
||
position | Vector3 | |
return |
public LatePlatformerUpdate ( float delta ) : void | ||
delta | float | |
return | void |
public OnTriggerEnter2D ( |
||
o | ||
return | void |
public PlatformerUpdate ( float delta ) : void | ||
delta | float | |
return | void |