using System; namespace XGame.Framework.ThreadScheduler { public static class MainThreadUpdateRegister { private static Action _update; public static event Action update { add { _update += value; } remove { _update -= value; } } public static void Update(int millisecond) { _update.SafeInvoke(millisecond); } } }