From 8b1fc7063b387542803c6bc214ccf8acb32870bd Mon Sep 17 00:00:00 2001
From: chai <215380520@qq.com>
Date: Sun, 19 May 2024 16:46:27 +0800
Subject: * rename
---
Thronefall_1_0/Decompile/WaveCountPopUp.cs | 77 ++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
create mode 100644 Thronefall_1_0/Decompile/WaveCountPopUp.cs
(limited to 'Thronefall_1_0/Decompile/WaveCountPopUp.cs')
diff --git a/Thronefall_1_0/Decompile/WaveCountPopUp.cs b/Thronefall_1_0/Decompile/WaveCountPopUp.cs
new file mode 100644
index 0000000..cf4b150
--- /dev/null
+++ b/Thronefall_1_0/Decompile/WaveCountPopUp.cs
@@ -0,0 +1,77 @@
+using System.Collections;
+using TMPro;
+using UnityEngine;
+
+public class WaveCountPopUp : MonoBehaviour, DayNightCycle.IDaytimeSensitive
+{
+ public GameObject popup;
+
+ public AnimationCurve scaleCurve;
+
+ public float animationTime = 0.75f;
+
+ public float initialDelay = 0.5f;
+
+ public float showTime = 3f;
+
+ public TextMeshProUGUI targetText;
+
+ private bool inAnimation;
+
+ private void Start()
+ {
+ popup.SetActive(value: false);
+ DayNightCycle.Instance.RegisterDaytimeSensitiveObject(this);
+ }
+
+ public void OnDawn_AfterSunrise()
+ {
+ }
+
+ public void OnDawn_BeforeSunrise()
+ {
+ }
+
+ public void OnDusk()
+ {
+ if (!inAnimation)
+ {
+ StartCoroutine(PopUpAnimation());
+ }
+ }
+
+ private IEnumerator PopUpAnimation()
+ {
+ inAnimation = true;
+ popup.SetActive(value: true);
+ popup.transform.localScale = Vector3.zero;
+ float timer2 = 0f;
+ yield return new WaitForSeconds(initialDelay);
+ targetText.text = "