🚧 farming rework part 2: you can now kinda "create" fields
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://dlbjjgbs0n4b0
|
||||
Reference in New Issue
Block a user