public void Crash() { crashed = true; Drone.Crash(); var touchListener = new CCEventListenerTouchAllAtOnce(); touchListener.OnTouchesEnded = AllowRestart; AddEventListener(touchListener, this); }