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.
19 lines
468 B
19 lines
468 B
using Babushka.scripts.CSharp.Common.CharacterControls;
|
|
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Farming;
|
|
|
|
public partial class WellBehaviour : Node2D
|
|
{
|
|
[Export] private InteractionArea2D _interactionArea;
|
|
|
|
public override void _Ready()
|
|
{
|
|
WateringCanState.WateringCanActiveStateChanged += OnWateringCanStateChanged;
|
|
}
|
|
|
|
private void OnWateringCanStateChanged(bool state)
|
|
{
|
|
_interactionArea.IsActive = state;
|
|
}
|
|
} |