Added Wellbehaviour and fixed door interaction to offer outlines
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user