From 0594f7c42b92dc5587f0938dae162254d9cc549a Mon Sep 17 00:00:00 2001 From: Thorbjoern Date: Sat, 19 Jul 2025 14:18:26 +0200 Subject: [PATCH] Added StopReplay() when changing scenes --- Assets/_Scenes/TrainingObserverMeta.unity | 12 ++++++++++++ Assets/_Scripts/GhostSystem/GhostReplayManager.cs | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Assets/_Scenes/TrainingObserverMeta.unity b/Assets/_Scenes/TrainingObserverMeta.unity index 065cfeb..ca7aedc 100644 --- a/Assets/_Scenes/TrainingObserverMeta.unity +++ b/Assets/_Scenes/TrainingObserverMeta.unity @@ -29284,6 +29284,18 @@ MonoBehaviour: m_OnValueChanged: m_PersistentCalls: m_Calls: + - m_Target: {fileID: 294328934} + m_TargetAssemblyTypeName: GhostSystem.GhostReplayManager, Assembly-CSharp + m_MethodName: StopReplay + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 - m_Target: {fileID: 294328934} m_TargetAssemblyTypeName: GhostSystem.GhostReplayManager, Assembly-CSharp m_MethodName: RemoveDoors diff --git a/Assets/_Scripts/GhostSystem/GhostReplayManager.cs b/Assets/_Scripts/GhostSystem/GhostReplayManager.cs index 45365fe..982b6f7 100644 --- a/Assets/_Scripts/GhostSystem/GhostReplayManager.cs +++ b/Assets/_Scripts/GhostSystem/GhostReplayManager.cs @@ -326,7 +326,6 @@ namespace GhostSystem TrackedObjects.RemoveRange(TrackedObjects.Count - doorCount, doorCount); doorCount = 0; } - } }