You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
550 B
27 lines
550 B
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Farming;
|
|
|
|
public partial class FieldActivator : Node
|
|
{
|
|
[Export] private Node2D _field;
|
|
|
|
private bool _activated = false;
|
|
private bool _rakeInHand;
|
|
|
|
public void ActivateField()
|
|
{
|
|
if (!_activated && _rakeInHand)
|
|
{
|
|
GD.Print("Tryina activate this field right here....");
|
|
_field.Visible = true;
|
|
_activated = true;
|
|
}
|
|
}
|
|
|
|
public void RakeActivated(bool activated)
|
|
{
|
|
_rakeInHand = activated;
|
|
}
|
|
|
|
} |