Ejemplo n.º 1
0
 private void Die()
 {
     goingToHit       = null;
     currentTimeAlive = 0;
     this.gameObject.SetActive(false);
     if (shooter != null)
     {
         shooter.RestoreProjectile(this);
     }
     else
     {
         Destroy(this.gameObject);
     }
 }