Skip to content
Snippets Groups Projects
Commit 93c39d66 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Update Data

parent 481297e7
Branches
No related tags found
No related merge requests found
...@@ -20,11 +20,11 @@ using UnityEngine.SceneManagement; ...@@ -20,11 +20,11 @@ using UnityEngine.SceneManagement;
currentScene = SceneManager.GetActiveScene().name; currentScene = SceneManager.GetActiveScene().name;
RegisterScene(currentScene); RegisterScene(currentScene);
} }
Debug.LogFormat("Current Scene after Awake is: {0}", currentScene); Debug.LogFormat("[{0}] Current Scene after Awake is: {1}", this.gameObject.name, , currentScene);
} }
public void RegisterSound(string name) { public void RegisterSound(string name) {
Debug.LogFormat("Registering Sound as Played: {0}", name); Debug.LogFormat("[{0}] Registering Sound as Played: {1}", this.gameObject.name, name);
PlayedList.Add(name); PlayedList.Add(name);
} }
...@@ -35,7 +35,7 @@ using UnityEngine.SceneManagement; ...@@ -35,7 +35,7 @@ using UnityEngine.SceneManagement;
public void UpdateScene(string SceneName){ public void UpdateScene(string SceneName){
// Unloading old scene // Unloading old scene
SceneManager.UnloadSceneAsync(currentScene); SceneManager.UnloadSceneAsync(currentScene);
Debug.LogFormat("Scene Switch from {0} to {1} completed", currentScene, SceneName); Debug.LogFormat("[{0}] Scene Switch from {1} to {2} completed", this.gameObject.name, currentScene, SceneName);
// Updating new scene // Updating new scene
currentScene = SceneName; currentScene = SceneName;
RegisterScene(SceneName); RegisterScene(SceneName);
...@@ -44,7 +44,7 @@ using UnityEngine.SceneManagement; ...@@ -44,7 +44,7 @@ using UnityEngine.SceneManagement;
public void RegisterScene(string name) { public void RegisterScene(string name) {
if (!WasThereBefore(name)) { if (!WasThereBefore(name)) {
VisitedScenes.Add(name); VisitedScenes.Add(name);
Debug.LogFormat("Registering Scene as Visited: {0}", name); Debug.LogFormat("[{0}] Registered Scene as Visited: {1}", this.gameObject.name, name);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment