private void Awake() { this.levelSelect = this.GetComponentInChildren <Dropdown>(); this.controllsPane = this.GetComponentInChildren <ControllsUI>(); this.settingsPane = this.GetComponentInChildren <SettingsUI>(); this.bestTimesPane = this.GetComponentInChildren <BestTimesUI>(); }
private void Awake() { this.dropdowns = this.GetComponentsInChildren <Dropdown>(); this.controllsPane = this.GetComponentInChildren <ControllsUI>(); this.settingsPane = this.GetComponentInChildren <SettingsUI>(); this.bestTimesPane = this.GetComponentInChildren <BestTimesUI>(); this.usernamePane = this.GetComponentInChildren <NoUsernameUI>(); if (LevelInfo.WinableLevels.Count != SavedDataManager.Data.BestTimes.Length) { Debug.LogError("Best times do not align with current levels. Clearing best time data."); SavedDataManager.Data.ClearBestTimes(); SavedDataManager.Save(); } }