Skip to content

Commit

Permalink
resetting correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bozmir committed Dec 20, 2024
1 parent 49bc757 commit 3b3765b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Assets/Scripts/KerstSpecial/RaceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void ResetPlayer()
foreach (StempelTrigger trigger in triggers)
trigger.IsCollected = false;

stempelkaart stempelkaart = FindObjectOfType<stempelkaart>();
stempelkaart stempelkaart = FindObjectOfType<stempelkaart>(true);
stempelkaart.SetStampEnabled(1, false);
stempelkaart.SetStampEnabled(2, false);
stempelkaart.SetStampEnabled(3, false);
Expand Down Expand Up @@ -310,15 +310,15 @@ public void GivePenaltySpeedToPlayer(float penalty)

private void Update()
{

//if (IsDebugOn && Keyboard.current[Key.End].wasPressedThisFrame) {
// Finish();
//}
//if(IsDebugOn && Keyboard.current[Key.Home].wasPressedThisFrame)
//{
// playerSpeed = 200;
// playerOffRoadSpeed = 200;
//}
if (IsDebugOn && Keyboard.current[Key.Home].wasPressedThisFrame)
{
playerSpeed = 200;
playerOffRoadSpeed = 200;
}
//if (IsDebugOn && Keyboard.current[Key.PageUp].wasPressedThisFrame)
//{
// player.GetComponent<AudioSource>().enabled = false;
Expand Down

0 comments on commit 3b3765b

Please sign in to comment.