public override void ButtonDown() { GameSession session = GameSession.Instance; if (session.isNetworkGame) { if (!processing) { if (PausableMonoBehaviour.isPaused) { session.RequestResume(); } else { session.RequestPause(); } } } else { if (!processing) { if (!PausableMonoBehaviour.isPaused) { ScreenDebugger.addText("Paws"); PausableMonoBehaviour.Pause(); } else { ScreenDebugger.addText("Un-paws"); PausableMonoBehaviour.Resume(); } } } }
void handlePauseGame() { PausableMonoBehaviour.Pause(); }
void zero() { UICountDown.Instance.guiTexture.pixelInset = Constants.offScreenRect; PausableMonoBehaviour.Resume(false); show(); }