public void Dead() { if (pilot.dead) { return; } pilot.Dead(); // destroy all guns Gun[] guns = GetComponentsInChildren <Gun>(); foreach (Gun gun in guns) { Destroy(gun.gameObject); } GameManager.Instance.watchCamera.gameObject.SetActive(true); GameManager.Instance.birdSpawner.SpawnDeathBirds(); }