|
|
|
|
@ -68,9 +68,7 @@ public partial class FarmingControls2D : Node2D
|
|
|
|
|
{
|
|
|
|
|
Vector2 mousePosition = _camera.GetGlobalMousePosition();
|
|
|
|
|
Vector2I mousePositionInteger = (Vector2I) mousePosition;
|
|
|
|
|
GD.Print(mousePosition);
|
|
|
|
|
Vector2I adjustedPosition = AdjustValue(mousePositionInteger, new Vector2I(735, 651));
|
|
|
|
|
GD.Print(adjustedPosition);
|
|
|
|
|
|
|
|
|
|
if (@event.IsActionPressed("click") && _toolId == 0)
|
|
|
|
|
{
|
|
|
|
|
|