示例#1
0
    // 開幕
    private void Start()
    {
        // 序盤のゲームステータスをNONEに
        if (fadeTimeScr)
        {
            stageState = StageState.FADEIN;
            fadeTimeScr.SetFadeType(FadeTime.FadeType.FADEIN);
        }
        else
        {
            stageState = StageState.READY;
        }

        timeDisplayScr.SetTime(stagePlayDelayMax);
        wirelessManagerScr.SetTime(stageReadyDelayMax, 4.5f, 3.0f);
        isGameClear = false;

        if (gameClearSceneName == "")
        {
            gameClearSceneName = "Title";
        }
        if (gameFailureSceneName == "")
        {
            gameFailureSceneName = "Title";
        }
    }
示例#2
0
 private void Update()
 {
     TimeDisplay.SetTime();
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         if (paused)
         {
             Unpause();
         }
         else
         {
             Pause();
         }
     }
     if (!paused)
     {
         if (Input.GetKeyDown(KeyCode.E) && DialogueManager.playingConversation)
         {
             _UIScript.HidePlayerUI();
             DialogueManager.instance.DisplayNextSentence();
         }
         if (TimeDisplay.hours == 0 && TimeDisplay.minutes == 1 && TimeSinceLastRobbers > 5)
         {
             TimeSinceLastRobbers = 0;
             StartCoroutine(SpawnGraveRobbers(RobbersPerSpawn));
         }
     }
     timeSinceLastDialogueStarted += Time.deltaTime;
     TimeSinceLastRobbers         += Time.deltaTime;
     if (!_isPlayingTutorial)
     {
         timeSinceLastPrompt     += Time.deltaTime;
         timeSinceLastMiscPrompt += Time.deltaTime;
         if (timeSinceLastPrompt > timeBetweenPrompts)
         {
             timeSinceLastPrompt = 0f;
             StartCoroutine(ShowPrompt());
         }
     }
 }