void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }
//Note: In all cases test that DaySelectorData has been updated. public void SetupDaySelector() { daySelector = new SceneSelector { tryAgainTomorrowSceneName = "TryAgainTomorrow", bannedSceneName = "UnsafeToContine", trialCompletedSceneName = "TrialCompleted", corruptedSceneName = "CorruptedSceneName", trialDaySceneNames = new List <string>() { "Day1", "Day2", "Day3", "Day4" } }; }