public void CheckSaveOrLoadCamera(UpdateEvent evt, SpectatorCameraNode camera) { for (int i = 0; i < saveKeys.Length; i++) { if (InputManager.GetKeyDown(saveKeys[i])) { camera.spectatorCamera.SaveCameraModificatorKeyHasBeenPressed = false; } if (InputManager.GetKey(saveKeys[i]) && InputManager.CheckAction(SpectatorCameraActions.SaveCameraModificator)) { camera.spectatorCamera.SaveCameraModificatorKeyHasBeenPressed = true; } if (InputManager.GetKeyUp(saveKeys[i])) { if (camera.spectatorCamera.SaveCameraModificatorKeyHasBeenPressed) { base.ScheduleEvent(new SaveCameraEvent(i), camera.Entity); } else { base.ScheduleEvent(new LoadCameraEvent(i), camera.Entity); } } } }
public void LoadCamera(LoadCameraEvent e, SpectatorCameraNode camera, [JoinAll] Optional <SingleNode <FollowedBattleUserComponent> > followedUser, [JoinAll] ICollection <UserNode> users) {