Skip to content

Commit

Permalink
[FIX] First cut is only not detected in Mobile now
Browse files Browse the repository at this point in the history
  • Loading branch information
Relegends committed Dec 12, 2021
1 parent a5d52a5 commit a01d702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Input/PizzaCutManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void OnCutStarted(InputAction.CallbackContext context)
var startPointWorldCoords = AttackPosition();


if (_isFirstCut)
if (_isFirstCut && PlatformDetector.IsPlatformMobile())
{
_isFirstCut = false;
startCutInputEvent.Invoke(startPointWorldCoords, true);
Expand Down

0 comments on commit a01d702

Please sign in to comment.