void Start() { CurrentLevelVariableManagement.SetGameUIReferences(); //Initialize the static database. ResourceDatabase.InitializeDatabase(); //Initialize the initial UI elements. if (InitializeProfileSwitcher != null) { InitializeProfileSwitcher(); } else { Debug.LogError("InitializeProfileSwitcher was null!!"); } CurrentLevelVariableManagement.GetMainGameControl().DefineInitialLevelElements(); }
void Start() { if (InitializeProfessionChoiceManager != null) { InitializeProfessionChoiceManager(); } else { Debug.LogError("InitializeProfessionChoiceManager was null!!!"); } if (InitializeProfessionSpeechManager != null) { InitializeProfessionSpeechManager(); } else { Debug.LogError("InitializeProfessionSpeechManager was null!"); } Debug.Log("ProfessionEventManager completed"); CurrentLevelVariableManagement.GetMainGameControl().InitializeProfessionObjects(); }
//When the next level is selected. public void OnContinueToNextLevelButtonPressed() { Debug.Log("Would load next level"); CurrentLevelVariableManagement.GetMainGameControl().OnCurrentLevelCompleted(); }