Added Wellbehaviour and fixed door interaction to offer outlines

This commit is contained in:
2025-07-31 20:36:17 +02:00
parent 19e30dd0b8
commit 0f246825fc
10 changed files with 116 additions and 20 deletions
@@ -23,6 +23,10 @@ public static class WateringCanState
/// Triggers animations and ui.
/// </summary>
public static bool Active = false;
public delegate void WateringCanDelegate(bool state);
public static event WateringCanDelegate WateringCanActiveStateChanged;
/// <summary>
@@ -65,6 +69,8 @@ public static class WateringCanState
/// <param name="active"></param>
public static void SetActive(bool active)
{
if(active != Active)
WateringCanActiveStateChanged?.Invoke(active);
Active = active;
}
}