|
|
@@ -10,20 +10,13 @@ public class BowCamera : MonoBehaviour
|
|
|
public Camera cameraComp;
|
|
|
// 用于禁止相机旋转外部接口
|
|
|
public bool banRotate = false;
|
|
|
- public bool debugInEditor = false;
|
|
|
-
|
|
|
- void Start() {
|
|
|
- if (this.debugInEditor) {
|
|
|
- // Cursor.lockState = CursorLockMode.Locked;
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
void Update()
|
|
|
{
|
|
|
if (GameMgr.ins.gameOver || banRotate) {
|
|
|
return;
|
|
|
}
|
|
|
- if (debugInEditor) {
|
|
|
+ if (GameMgr.debugInEditor) {
|
|
|
this.eualrAngles.x = Mathf.Clamp(this.eualrAngles.x - this.mouseSensitivity * Input.GetAxis("Mouse Y"), -36, 36);
|
|
|
this.eualrAngles.y = Mathf.Clamp(this.eualrAngles.y + this.mouseSensitivity * Input.GetAxis("Mouse X"), -20, 20);
|
|
|
this.transform.eulerAngles = this.eualrAngles;
|