public void timeoutElapsed(Timeoutable t) { //TODO refactor tags out, use method accesesor for this feature if (t.CompareTag("spaceship")) { //Invoked by the Controllers after a timeout SpaceShipController spaceShip = t.GetComponent <SpaceShipController> (); DestroyWithExplosion(spaceShip.Player.gameObject, false, false); } else { Destroy(t.gameObject); } }
public void timeoutElapsed(Timeoutable t) { //_curWeapon = Collectable.WeaponType.None; }