From 49bc757ee29619adc840ee57ef04551c47ff4aa7 Mon Sep 17 00:00:00 2001 From: bozmir Date: Fri, 20 Dec 2024 19:14:47 +0100 Subject: [PATCH] reset stempel kaart on reset player --- Assets/Scripts/KerstSpecial/RaceController.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Assets/Scripts/KerstSpecial/RaceController.cs b/Assets/Scripts/KerstSpecial/RaceController.cs index d7ce8cba..4deef087 100644 --- a/Assets/Scripts/KerstSpecial/RaceController.cs +++ b/Assets/Scripts/KerstSpecial/RaceController.cs @@ -195,6 +195,16 @@ void PlayRandomClip() public void ResetPlayer() { + StempelTrigger[] triggers = FindObjectsOfType(); + foreach (StempelTrigger trigger in triggers) + trigger.IsCollected = false; + + stempelkaart stempelkaart = FindObjectOfType(); + stempelkaart.SetStampEnabled(1, false); + stempelkaart.SetStampEnabled(2, false); + stempelkaart.SetStampEnabled(3, false); + stempelkaart.SetStampMarkerEnabled(false); + isReadyToMove = false; isReadyForStart = false; StartAnimation();