date
This commit is contained in:
@@ -41,11 +41,13 @@ public partial class Actor : Node
|
||||
{
|
||||
if (!_activeBall._placed)
|
||||
{
|
||||
_activeCue.HideCue();
|
||||
Vector2 mousePosition = GetViewport().GetMousePosition();
|
||||
_activeBall.Position = mousePosition;
|
||||
GetNode<Marker2D>("StartPosition").Position = mousePosition;
|
||||
if (Input.IsActionJustReleased("left_click"))
|
||||
{
|
||||
_activeBall.Place(mousePosition);
|
||||
_activeBall.Place(GetNode<Marker2D>("StartPosition").Position);
|
||||
GD.Print(_activeBall.Position);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user