From ee045f4687de8a0a3bbe155e44d8b897abffb283 Mon Sep 17 00:00:00 2001 From: "Nathan St. John" <84703098+Galaxy25@users.noreply.github.com> Date: Tue, 14 May 2024 12:08:55 -0700 Subject: [PATCH] Update LineDrawer.cs --- Assets/Scripts/TouchControl/LineDrawer.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/Scripts/TouchControl/LineDrawer.cs b/Assets/Scripts/TouchControl/LineDrawer.cs index ed942d5..743c806 100644 --- a/Assets/Scripts/TouchControl/LineDrawer.cs +++ b/Assets/Scripts/TouchControl/LineDrawer.cs @@ -103,12 +103,10 @@ public bool SpellCast(Touch touch) DirectionJoystick.Instance.SetJoystick(position); DirectionJoystick.Instance.SetJoystickCenterPoint(position); return false; - break; case TouchPhase.Moved: DirectionJoystick.Instance.SetJoystickCenterPoint(AdjustPointToScreen(8, touch.position)); return false; - break; case TouchPhase.Ended: Player.Instance.GetComponent().CastSpell(spellStorage); @@ -117,7 +115,6 @@ public bool SpellCast(Touch touch) DirectionJoystick.Instance.joystick.transform.localPosition); DirectionJoystick.Instance.Hide(); return true; - break; case TouchPhase.Canceled: Player.Instance.GetComponent().CastSpell(spellStorage); @@ -126,7 +123,6 @@ public bool SpellCast(Touch touch) DirectionJoystick.Instance.joystick.transform.localPosition); DirectionJoystick.Instance.Hide(); return true; - break; } return false; }