Exemplo n.º 1
0
 public void TransitionToNewScene(string sceneName, bool showIntro)
 {
     CommonObjects.showIntro = showIntro;
     Time.timeScale          = 1;
     SceneManager.LoadScene(sceneName, LoadSceneMode.Single);
     CommonObjects.Refresh();
 }
Exemplo n.º 2
0
 void Start()
 {
     CommonObjects.Refresh();
     if (CommonObjects.showIntro)
     {
         directions.SetActive(true);
     }
     else
     {
         BeginGame();
     }
 }