void Awake() { if (stepBulletPoint == false) { Debug.LogError("No stepBulletPoint referenced!"); } if (goalText == false) { Debug.LogError("No goalText referenced!"); } if (getHelpButtonText == false) { Debug.LogError("No getHelpButtonText referenced!"); } if (getHelpButtonRT == false) { Debug.LogError("No getHelpButtonRT referenced!"); } if (getHelpButton == false) { Debug.LogError("No getHelpButton referenced!"); } cvLoader = CourseViewLoader.ins; if (cvLoader == null) { Debug.LogError("No course view loader?!! PANIK"); } }
void Awake() { if (_ins == null) { // Populate with first instance _ins = this; } else { // Another instance exists, destroy if (this != _ins) Destroy(this.gameObject); } }
void Awake() { if (_ins == null) { // Populate with first instance _ins = this; } else { // Another instance exists, destroy if (this != _ins) { Destroy(this.gameObject); } } }
private void SetupCourseView() { courseViewLoader = CourseViewLoader.ins; if (courseViewLoader == null) { Debug.LogError("No CourseViewLoader found!"); } SaveCurCourseDataIfEmpty(); LoadCurCourseData(); //If no current course, go to main menu if (curCourse == null) { applicationManager.TransitionToMainMenuScene(); return; } LoadCourseProgressData(curCourse); //When all course data is set up, load the current one courseViewLoader.LoadCurrentCourseView(); }