Свойство | Тип | Описание | |
---|---|---|---|
onDestroy | System.Action | ||
onImpact | System.Action |
Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
_Destroy ( ) : void |
Real destroy method
|
public Fire ( Vector3 position ) : |
||
position | Vector3 | |
Результат |
public LatePlatformerUpdate ( float delta ) : void | ||
delta | float | |
Результат | void |
public OnTriggerEnter2D ( |
||
o | ||
Результат | void |
public PlatformerUpdate ( float delta ) : void | ||
delta | float | |
Результат | void |