using KinematicCharacterController.Walkthrough.NoClipState; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; /******************************************************************************** *Create By CG *Function 摄像机自身控制控制 *WSAD:前后左右-QE:上下-鼠标滚轮:镜头远近-按住鼠标右键,拖动鼠标:摄像机上下左右旋转 *********************************************************************************/ namespace CG.UTility { public class CameraControl : MonoBehaviour { public float _moveSpeed = 0.06f;// 3.0f; public float _MoveSpeed { get => _moveSpeed * ZXK.LouDiXvMuNiu.GameManager.Instance._CurMouseFlexible; } public MyCharacterController _CameraCtrl; [ReadOnly]//点击操作说明或者系统设置后,禁止操作 public bool _AllForbid = false; private void Update() { _CameraCtrl.NoClipMoveSpeed = _MoveSpeed; } } }