using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraControllerTest : MonoBehaviour
{
public float xOffset = 0;
public float yOffset = 0;
public float turnLRSpeed = 10;
public float turnUDSpeed = 5;
public GameObject playerObj;
public GameObject cameraObj;
bool isRotate = false;
public float invokeTime = 2;
public float cameraAngleLimit = 30;
public float currentEluerAngle_X;
void Start()
{
Invoke("SetIsRotate", invokeTime);
}
// Update is called once per frame
void Update()
{
if (isRotate)
{
xOffset = Input.GetAxis("Mouse X");//控制左右转动,左右转动,要去调整Player的旋转
yOffset = Input.GetAx