// Update is called once per frame void Update() { if (SceneType == SceneType.Space) { PlayerControl.PerFrameUpdate(); CursorManager.PerFrameUpdate(); NPCManager.PerFrameUpdate(); WorldManager.PerFrameUpdate(); UIManager.PerFrameUpdate(); CameraController.PerFrameUpdate(); } else if (SceneType == SceneType.SpaceTest) { PlayerControl.PerFrameUpdate(); //CursorManager.PerFrameUpdate(); //NPCManager.PerFrameUpdate(); //WorldManager.PerFrameUpdate(); } else if (SceneType == SceneType.Station) { UIManager.PerFrameUpdate(); CameraController.PerFrameUpdate(); } InputEventHandler.Instance.PerFrameUpdate(); }
void Update() { if (InputEventHandler.Instance.State != UserInputState.Intro) { EventManager.ManagerPerFrameUpdate(); PlayerControl.PerFrameUpdate(); AIScheduler.UpdatePerFrame(); CursorManager.PerFrameUpdate(); SoundManager.PerFrameUpdate(); NPCManager.PerFrameUpdate(); } UIManager.PerFrameUpdate(); }