void OnLevelWasLoaded(int index) { if (sceneController != null) { string levelName = SceneManager.GetActiveScene().name; //Debug.Log ("GAME CONTROLLER ON LEVEL LOADED: " + Application.loadedLevelName); if (levelName.Contains("Authentication") && (sceneController.previousScene != SceneController.GameScenes.Null || sceneController.previousScene != SceneController.GameScenes.Splash)) { //Debug.Log("MADE IT THROUGH THE IF STATEMENT"); //DialogCanvasController.RequestInterstitial(); soundManager.PlayMusic(0); } else if (levelName.Contains("Profile")) { soundManager.PlayMusic(1); Debug.Log("Profile loaded! "); //CharacterProfileDataRefresh(); CharacterSelectDataRefresh(); } else if (levelName.Contains("GamePlay")) { soundManager.PlayMusic(3); //DialogCanvasController.RequestInterstitial(); } } }