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; }