public void Update() { for (int i = 1; i < (int)EUpdatePass.Count; i++) { EUpdatePass pass = (EUpdatePass)i; m_UpdateGuardPass = pass; foreach (ObjectToUpdate objectToUpdate in m_ObjectListPerPass[(int)pass]) { if (!m_IsPaused || !objectToUpdate.m_IsPausable) { ReflectionHelper.CallMethod("Update" + pass.ToString(), objectToUpdate.m_ObjectToUpdate); } } m_UpdateGuardPass = EUpdatePass.Invalid; } }
public void Update() { /*if (m_IsPaused) * { * return; * }*/ m_UpdateGuard = true; for (int i = 0; i < (int)EUpdatePass.Count; i++) { EUpdatePass pass = (EUpdatePass)i; foreach (AnyObject objectToUpdate in m_ObjectListPerPass[(int)pass]) { ReflectionHelper.CallMethod("Update" + pass.ToString(), objectToUpdate); } } m_UpdateGuard = false; }