Exemplo n.º 1
0
 private void ManageSceneControl()
 {
     if (this.CurrentScene == Custom_Scene.MainMenu)
     {
         if (!Input.GetKeyDown(KeyCode.Mouse0) && !Input.GetKeyDown(KeyCode.Mouse1))
         {
             if (Input.anyKeyDown)
             {
                 this.CurrentScene = Custom_Scene.MainGame;
                 SceneLoader.GoToScene(Custom_Scene.MainGame);
             }
         }
     }
     else if (this.CurrentScene == Custom_Scene.MainGame)
     {
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     this.CurrentScene = Custom_Scene.MainMenu;
     this.gameState    = new GameState();
 }
Exemplo n.º 3
0
 public static void GoToScene(Custom_Scene newScene)
 {
     SceneManager.LoadScene(newScene.ToString());
 }