public static void AddCameraStateNew(PlayerEntity playerEntity) { if (!playerEntity.hasCameraStateNew) { playerEntity.AddCameraStateNew(); } if (!playerEntity.hasCameraFinalOutputNew) { playerEntity.AddCameraFinalOutputNew(); } if (!playerEntity.hasCameraStateOutputNew) { playerEntity.AddCameraStateOutputNew(); } if (!playerEntity.hasCameraConfigNow) { playerEntity.AddCameraConfigNow(); } if (!playerEntity.hasCameraArchor) { playerEntity.AddCameraArchor(); } if (!playerEntity.hasCameraStateUpload) { playerEntity.AddCameraStateUpload(); } }
public static void AddCameraStateNew(PlayerEntity playerEntity) { if (!playerEntity.hasCameraStateNew) { playerEntity.AddCameraStateNew(); } if (!playerEntity.hasCameraFinalOutputNew) { playerEntity.AddCameraFinalOutputNew(SingletonManager.Get <CameraConfigManager>().PostTransitionTime); } if (!playerEntity.hasCameraStateOutputNew) { playerEntity.AddCameraStateOutputNew(); } if (!playerEntity.hasCameraConfigNow) { playerEntity.AddCameraConfigNow(); } if (!playerEntity.hasCameraArchor) { playerEntity.AddCameraArchor(); } if (!playerEntity.hasCameraStateUpload) { playerEntity.AddCameraStateUpload(); } if (!playerEntity.hasThirdPersonDataForObserving) { playerEntity.AddThirdPersonDataForObserving(new CameraStateOutputNewComponent(), new CameraFinalOutputNewComponent()); } }