summaryrefslogtreecommitdiff
path: root/Thronefall_1_57/Decompile/Thronefall/WaveDescriptionUI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Thronefall_1_57/Decompile/Thronefall/WaveDescriptionUI.cs')
-rw-r--r--Thronefall_1_57/Decompile/Thronefall/WaveDescriptionUI.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Thronefall_1_57/Decompile/Thronefall/WaveDescriptionUI.cs b/Thronefall_1_57/Decompile/Thronefall/WaveDescriptionUI.cs
new file mode 100644
index 0000000..2749729
--- /dev/null
+++ b/Thronefall_1_57/Decompile/Thronefall/WaveDescriptionUI.cs
@@ -0,0 +1,30 @@
+using UnityEngine;
+
+public class WaveDescriptionUI : MonoBehaviour, DayNightCycle.IDaytimeSensitive
+{
+ public GameObject waveDescriptionPanel;
+
+ private void Start()
+ {
+ DayNightCycle.Instance.RegisterDaytimeSensitiveObject(this);
+ waveDescriptionPanel.SetActive(DayNightCycle.Instance.CurrentTimestate == DayNightCycle.Timestate.Day);
+ }
+
+ public void OnDawn_AfterSunrise()
+ {
+ waveDescriptionPanel.SetActive(value: true);
+ }
+
+ public void OnDusk()
+ {
+ waveDescriptionPanel.SetActive(value: false);
+ }
+
+ public void OnDawn_BeforeSunrise()
+ {
+ }
+
+ public void OnDuskEarly()
+ {
+ }
+}