Skip to content

Commit

Permalink
#596 disable rewind controls inside checkpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldgenerator7 committed Jul 21, 2024
1 parent 097d839 commit 3bf732c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/Scripts/PlayerController/Input/GestureProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ public void processZoomLevelChange(float zoomLevel)
}
else if (zoomLevel > Managers.Camera.toZoomLevel(CameraController.CameraScalePoints.TIMEREWIND - 1))
{
if (CheckPointChecker.InCheckPoint && CheckPointChecker.current.GetComponentInParent<PlayerPilotController>())
if (CheckPointChecker.InCheckPoint)
{
if (CheckPointChecker.current.GetComponentInParent<PlayerPilotController>())
{
Managers.Gesture.switchGestureProfile(GestureManager.GestureProfileType.PILOT);
}
}
else {
Managers.Gesture.switchGestureProfile(GestureManager.GestureProfileType.REWIND);
Expand Down

0 comments on commit 3bf732c

Please sign in to comment.