summaryrefslogtreecommitdiff
path: root/Thronefall_v1.0/Decompile/WaveDescriptionUI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Thronefall_v1.0/Decompile/WaveDescriptionUI.cs')
-rw-r--r--Thronefall_v1.0/Decompile/WaveDescriptionUI.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/WaveDescriptionUI.cs b/Thronefall_v1.0/Decompile/WaveDescriptionUI.cs
new file mode 100644
index 0000000..ef1feb5
--- /dev/null
+++ b/Thronefall_v1.0/Decompile/WaveDescriptionUI.cs
@@ -0,0 +1,26 @@
+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()
+ {
+ }
+}