using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
public float rotateSpeed = 10.0f; // Изменено имя переменной
private void Update()
{
float rotate = 0f;
if(Input.GetKey(KeyCode.Q))
rotate = -1f;
else if(Input.GetKey(KeyCode.E))
rotate = 1f;
transform.Rotate(Vector3.up * rotateSpeed * Time.deltaTime * rotate);
}
}