Свойство | Type | Description | |
---|---|---|---|
onDestroy | System.Action | ||
onImpact | System.Action |
Méthode | 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
|
Méthode | Description | |
---|---|---|
_Destroy ( ) : void |
Real destroy method
|
public Fire ( Vector3 position ) : |
||
position | Vector3 | |
Résultat |
public LatePlatformerUpdate ( float delta ) : void | ||
delta | float | |
Résultat | void |
public OnTriggerEnter2D ( |
||
o | ||
Résultat | void |
public PlatformerUpdate ( float delta ) : void | ||
delta | float | |
Résultat | void |