Beispiel #1
0
 public void ResumeGame()
 {
     paused = false;
     OnResumed?.Invoke();
     SlingSystem.pauseShooting = false;
     Time.timeScale            = 1.0f;
 }
Beispiel #2
0
 public void OnResume()
 {
     if (logging)
     {
         Debug.Log("[SensoManager] OnResume");
     }
     OnResumed?.Invoke();
 }
Beispiel #3
0
 public void Resume()
 {
     if (!_paused)
     {
         return;
     }
     OnResumed?.Invoke();
     _paused = false;
 }
Beispiel #4
0
 public void OnResume()
 {
     _suspended = false;
     if (logging)
     {
         Debug.Log("[SensoManager] OnResume");
     }
     OnResumed?.Invoke();
 }
Beispiel #5
0
 private void Window_KeyPressed(object sender, KeyEventArgs e)
 {
     // Handle pause
     if (e.Code.Equals(SFML.Window.Keyboard.Key.Escape))
     {
         IsPaused = true;
         DrawPause();
         Console.WriteLine("Set paused = {0}", true);
         WaitForResumed();
         Console.WriteLine("Set paused = {0}", false);
         IsPaused = false;
         OnResumed?.Invoke();
     }
 }
 /// <summary>
 /// Triggers when the game is resumed.
 /// </summary>
 private void TriggerGameResumed()
 {
     OnResumed?.Invoke(gameData);
 }
Beispiel #7
0
 /// <summary>
 /// Appから呼び出します
 /// 他の場所からは呼ばないようにしてください
 /// </summary>
 public void Resumed()
 {
     OnResumed?.Invoke();
 }
Beispiel #8
0
 protected override void OnResume()
 {
     App.DebugLog("1");
     OnResumed?.Invoke();
     App.DebugLog("2");
 }
Beispiel #9
0
 /// <summary>
 /// Triggers when the game is resumed.
 /// </summary>
 private void TriggerGameResumed()
 {
     print("[TEST] TriggerGameResumed");
     OnResumed?.Invoke(gameData);
     SceneActivationBehaviour <BoardUIActivator> .Instance.QuixelController.ShowHideCharacter(true);
 }