public static void ToggleUpdates()
{
Application.targetFrameRate = targetFrameRate;
framesToProcess = numPhysicsFramesPerUpdate;
Time.timeScale = (framesToProcess > 0) ? physicsTimeMultiplier : 0.0f;
Time.captureFramerate = (framesToProcess > 0) ? Mathf.FloorToInt(physicsTimeMultiplier / (Time.fixedDeltaTime * numPhysicsFramesPerUpdate)) : 0;
foreach(Avatar a in myNetMessenger.GetAllAvatars())
a.readyForSimulation = false;
}