Main/System/Battle/UIComp/BattleTips.cs
@@ -10,12 +10,7 @@ public float showTime = 0.4f; public float timer = 0f; protected RectTransform rectTransform; void Awake() { rectTransform = gameObject.AddMissingComponent<RectTransform>(); } public RectTransform rectTransform; public Text tipText; @@ -33,6 +28,9 @@ // 不要使用update public void Run() { if (!gameObject.activeSelf) return; if (timer >= showTime) { OnFinish?.Invoke();