Ejemplo n.º 1
0
 protected virtual void Death()
 {
     IsAlive = false;
     if (Enemy != null)
     {
         trackSystem?.StopTracking();
     }
     Gamef.MissileClear(ID);
     OnDeath.Invoke();
     StartCoroutine(DelayDestroy());
 }
Ejemplo n.º 2
0
 void Death()
 {
     IsAlive = false;
     specialEffectHandler.CreateDestroyEffect(Caster, this, deathEffect);
     if (Enemy != null)
     {
         trackSystem?.StopTracking();
     }
     Gamef.MissileClear(ID);
     Gamef.Destroy(gameObject);
 }