using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CamerLook : MonoBehaviour
{
public FixedJoystick RightJoystick;
public float CameraAngle;
public float CameraAngleSpeed = 1f;
void Update()
{
CameraAngle += RightJoystick.input.x * CameraAngleSpeed;
Camera.main.transform.position = transform.position + Quaternion.AngleAxis(CameraAngle, Vector3.up) * new Vector3(0, 3, 4);
Camera.main.transform.rotation = Quaternion.LookRotation(transform.position + Vector3.up * 2f - Camera.main.transform.position, Vector3.up);
}
}
Please help