public static void Simulate() { if (InfluenceCount == 0) { InfluenceSimulate(); InfluenceCount = InfluenceResolution - 1; if (FrameManager.CanAdvanceFrame == false) { Stalled = true; return; } Stalled = false; FrameManager.Simulate(); InfluenceFrameCount++; } else { InfluenceCount--; } if (Stalled) { return; } if (FrameCount == 0) { StartGame(); } BehaviourHelper.GlobalSimulate(); AgentController.Simulate(); PhysicsManager.Simulate(); CoroutineManager.Simulate(); InfluenceManager.Simulate(); ProjectileManager.Simulate(); TestManager.Simulate(); TeamManager.Simulate(); LateSimulate(); FrameCount++; }