Main/Utility/GlobalTimeEvent.cs
@@ -6,7 +6,7 @@ public class GlobalTimeEvent : SingletonMonobehaviour<GlobalTimeEvent> { public event Action MS100Event; public event Action MSEvent; // 每50ms public event Action secondEvent; public event Action fiveSecondEvent; public event Action minuteEvent; @@ -34,11 +34,11 @@ private void Update() { var ms = Time.time; if (ms - msBuf >= 0.1f) if (ms - msBuf >= 0.05f) { if (MS100Event != null) if (MSEvent != null) { MS100Event(); MSEvent(); } msBuf = ms; }