예제 #1
0
 void Paused()
 {
     if (playerStatus.GetWantPause() && playerStatus.GetAlive())
     {
         pauseMenu.SetActive(true);
         tmolvl.SetTimerStop(true);
     }
     else if (!playerStatus.GetWantPause() && playerStatus.GetAlive())
     {
         pauseMenu.SetActive(false);
         warningMenu.SetActive(false);
         tmolvl.SetTimerStop(false);
     }
     if (lvlCon.RequestToNextHud())
     {
         nextRequest.SetActive(true);
         tmolvl.SetTimerStop(true);
     }
     else if (nextRequest.activeSelf)
     {
         nextRequest.SetActive(false);
     }
     if (!playerStatus.GetHasGasoline() && !playerStatus.GetAlive())
     {
         if (lvlCon.getFinNext())
         {
             NotGasolineMenu.SetActive(true);
         }
         tmolvl.SetTimerStop(true);
     }
 }
예제 #2
0
 void PlayerRequestPause()
 {
     if (plyerttu.GetWantPause() && plyerttu.GetAlive())
     {
         Time.timeScale = 0.0f;
     }
     else if (!plyerttu.GetWantPause() && plyerttu.GetAlive())
     {
         Time.timeScale = 1.0f;
     }
 }