Skip to content

Commit

Permalink
disabling cheats
Browse files Browse the repository at this point in the history
  • Loading branch information
bozmir committed Dec 20, 2024
1 parent 6aebc1c commit 3c0176a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Assets/Scripts/KerstSpecial/RaceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,18 +301,18 @@ 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.PageUp].wasPressedThisFrame)
{
player.GetComponent<AudioSource>().enabled = false;
}
//if (IsDebugOn && Keyboard.current[Key.End].wasPressedThisFrame) {
// Finish();
//}
//if(IsDebugOn && Keyboard.current[Key.Home].wasPressedThisFrame)
//{
// playerSpeed = 200;
// playerOffRoadSpeed = 200;
//}
//if (IsDebugOn && Keyboard.current[Key.PageUp].wasPressedThisFrame)
//{
// player.GetComponent<AudioSource>().enabled = false;
//}

if (routeCoords == null || !isReadyForStart)
return;
Expand Down

0 comments on commit 3c0176a

Please sign in to comment.