Example #1
0
 protected virtual void OnPause(GamePauseState state)
 {
     InputModule.Clear();
 }
 private void UnPauseGame()
 {
     PauseState = GamePauseState.UnPaused;
 }
 private void PauseGame()
 {
     PauseState = GamePauseState.Paused;
 }
 // Use this for initialization
 void Start()
 {
     PauseState = GamePauseState.UnPaused;
 }
 private void Awake()
 {
     playState  = new GamePlayState(this);
     pauseState = new GamePauseState(this);
 }