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