From 2f340322b9f3376ec5ef189c79fa994b9b474b5a Mon Sep 17 00:00:00 2001 From: Hazim Bin Ijaz Date: Mon, 4 Nov 2024 23:41:40 +0500 Subject: [PATCH] Fixed some bugs --- Assets/PipeOut/Scenes/GameScene.unity | 24 ++++++++++++++++++++++++ Assets/Scripts/GamePlayManager.cs | 2 ++ 2 files changed, 26 insertions(+) diff --git a/Assets/PipeOut/Scenes/GameScene.unity b/Assets/PipeOut/Scenes/GameScene.unity index e789a530..37aaf727 100644 --- a/Assets/PipeOut/Scenes/GameScene.unity +++ b/Assets/PipeOut/Scenes/GameScene.unity @@ -3938,6 +3938,18 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 + - m_Target: {fileID: 242488685} + m_TargetAssemblyTypeName: TimerManager, Assembly-CSharp + m_MethodName: StopTimer + 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 --- !u!114 &1137828061 MonoBehaviour: m_ObjectHideFlags: 0 @@ -8322,6 +8334,18 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 + - m_Target: {fileID: 242488685} + m_TargetAssemblyTypeName: TimerManager, Assembly-CSharp + m_MethodName: StartTimer + 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 --- !u!114 &2116708649 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/GamePlayManager.cs b/Assets/Scripts/GamePlayManager.cs index 327cf539..23a0b7c0 100644 --- a/Assets/Scripts/GamePlayManager.cs +++ b/Assets/Scripts/GamePlayManager.cs @@ -177,6 +177,8 @@ public class GamePlayManager : MonoBehaviour }); CheckGameOver(); levelLeaderBtn.gameObject.SetActive(isTimerLevel); + TimerManager.ResetTimer(); + TimerManager.StartTimer(); }