public static void DoTick() { for (int i = 0; i < mTickSystems.Count; ++i) { BaseSystem sys = mTickSystems[i]; sys.Tick(); } }
public static void StartTick(BaseSystem system) { if (mTickSystems.Contains(system)) { return; } mTickSystems.Add(system); }
static void Tick(object state) { long curTime = mStopWatch.ElapsedMilliseconds; DeltaTime = (float)(curTime - mLastTime) * 0.001f; mLastTime = curTime; BaseSystem.DoTick(); }
public static void StopTick(BaseSystem system) { mTickSystems.Remove(system); }