From 93c39d66e907910ab5badfa54bdcdbadd74e1595 Mon Sep 17 00:00:00 2001 From: David Huss <dh@atoav.com> Date: Mon, 6 Sep 2021 22:01:01 +0200 Subject: [PATCH] Update Data --- Assets/Data.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Data.cs b/Assets/Data.cs index e7041d3..4bd00b7 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); } } -- GitLab