Skip to content

Commit

Permalink
Update LineDrawer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Galaxy25 committed May 14, 2024
1 parent 586ae09 commit ee045f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Assets/Scripts/TouchControl/LineDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Player>().CastSpell(spellStorage);
Expand All @@ -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<Player>().CastSpell(spellStorage);
Expand All @@ -126,7 +123,6 @@ public bool SpellCast(Touch touch)
DirectionJoystick.Instance.joystick.transform.localPosition);
DirectionJoystick.Instance.Hide();
return true;
break;
}
return false;
}
Expand Down

0 comments on commit ee045f4

Please sign in to comment.