コード例 #1
0
        public override void SetPluginSettings(ActionCameraConfig settings)
        {
            base.SetPluginSettings(settings);

            SetBetweenTime(settings.cameraShoulderPositioningTime / (settings.inBetweenCameraEnabled ? 2 : 1));
            betweenCamera.SetBetweenTime(settings.cameraShoulderPositioningTime / (settings.inBetweenCameraEnabled ? 2 : 1));
            betweenCamera.SetPluginSettings(settings);
            betweenCamera.offset = new Vector3(0, -settings.cameraBodyVerticalTargetOffset, -settings.cameraShoulderDistance);
            CalculateOffset();
        }
コード例 #2
0
        public override void SetPluginSettings(ActionCameraConfig settings)
        {
            pluginSettings = settings;
            SetBetweenTime(settings.cameraBodyPositioningTime / (settings.inBetweenCameraEnabled ? 2 : 1));
            betweenCamera.SetBetweenTime(settings.cameraBodyPositioningTime / (settings.inBetweenCameraEnabled ? 2 : 1));
            betweenCamera.SetPluginSettings(settings);

            betweenCamera.offset = new Vector3(0, 1f, settings.cameraBodyDistance);

            CalculateOffset();
        }