diff --git a/Assets/Data.cs b/Assets/Data.cs index e7041d3d17b075e73fc579af52f490403e3aff5c..4bd00b73af45e4ecaef7ed1967d4d08b45d00e75 100644 --- a/Assets/Data.cs +++ b/Assets/Data.cs @@ -20,11 +20,11 @@ using UnityEngine.SceneManagement; currentScene = SceneManager.GetActiveScene().name; 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) { - Debug.LogFormat("Registering Sound as Played: {0}", name); + Debug.LogFormat("[{0}] Registering Sound as Played: {1}", this.gameObject.name, name); PlayedList.Add(name); } @@ -35,7 +35,7 @@ using UnityEngine.SceneManagement; public void UpdateScene(string SceneName){ // Unloading old scene 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 currentScene = SceneName; RegisterScene(SceneName); @@ -44,7 +44,7 @@ using UnityEngine.SceneManagement; public void RegisterScene(string name) { if (!WasThereBefore(name)) { VisitedScenes.Add(name); - Debug.LogFormat("Registering Scene as Visited: {0}", name); + Debug.LogFormat("[{0}] Registered Scene as Visited: {1}", this.gameObject.name, name); } }