예제 #1
0
 public void ResetLevel()
 {
     Debug.Log("Reseting day");
     DayOver        = false;
     elapsedDayTime = 0f;
     TaskController.ActivateAnswerPhase(false);
 }
예제 #2
0
 private void UpdateDayTime()
 {
     elapsedDayTime += Time.deltaTime;
     if (elapsedDayTime >= DayLengthSeconds)
     {
         Debug.Log("DAY OVER - Tasks begin");
         DayOver = true;
         RadioManager.Running    = false;
         RadioManager.allowStart = false;
         AkSoundEngine.PostEvent("StopRadio", gameObject);
         TaskController.taskPanel.Activate(true);
         TaskController.ActivateAnswerPhase(true);
     }
 }