コード例 #1
0
ファイル: GameOrchestrator.cs プロジェクト: zr3/mrbiscuits
 void Update()
 {
     if (Input.GetKey(KeyCode.LeftShift))
     {
         if (Input.GetKeyDown(KeyCode.PageDown))
         {
             ScreenFader.FadeOutThen(() => {
                 NextPhase();
                 MessageController.AddMessage("CHEAT: Next Phase");
                 ScreenFader.FadeIn();
             });
         }
         if (Input.GetKeyDown(KeyCode.Home))
         {
             MessageController.AddMessage("CHEAT: Clear Save");
             PlayerPrefs.DeleteAll();
         }
         if (Input.GetKeyDown(KeyCode.Escape))
         {
             Application.Quit();
         }
         if (Input.GetKeyDown(KeyCode.End))
         {
             SceneManager.LoadScene("game");
         }
     }
 }
コード例 #2
0
ファイル: GameOrchestrator.cs プロジェクト: zr3/mrbiscuits
    private IEnumerator RestartGame()
    {
        yield return(new WaitForSeconds(10));

        ScreenFader.FadeOutThen(() => SceneManager.LoadScene("game"));
    }