using System.Collections; using System.Collections.Generic; using UnityEngine; using Cinemachine; public class CameraController : Singleton { private CinemachineVirtualCamera cinemachineVirtualCamera; private void Start() { SetPlayerCameraFollow(); } public void SetPlayerCameraFollow() { cinemachineVirtualCamera = FindObjectOfType(); cinemachineVirtualCamera.Follow = PlayerController.Instance.transform; } }