Esempio n. 1
0
 public void Die()
 {
     if (died)
     {
         return;
     }
     died = true;
     flash.Emit();
     decayTime = time + decay;
     soul.SetActive(false);
     engine.Freeze(true);
     ControlComponents(false);
     SetExplodes();
     SetFloats();
     DropOrb();
     if (go.CompareTag("Alien"))
     {
         center.AlienDied(go);
     }
     else
     {
         center.EarthDied(go);
     }
 }