protected override void Tick(float dt) { for (int i = 0; i < m_Events.Count; i++) { TimeEvent evt = m_Events[i]; evt.Delay -= dt; if (evt.Delay > 0.0f) { continue; } try { if (evt.Callback != null) { evt.Callback(); } } catch (Exception e) { Log.Error("[Timer] CallBack Failed :" + e); } m_Events.RemoveAt(i); i--; } }