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