예제 #1
0
        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();
            }
        }
예제 #2
0
        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());
            }
        }