Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Cinemachine;
- using UnityEngine;
- public class CameraRegister : MonoBehaviour
- {
- private void OnEnable()
- {
- CameraManager.Register(GetComponent<CinemachineVirtualCamera>());
- }
- private void OnDisable()
- {
- CameraManager.Unregister(GetComponent<CinemachineVirtualCamera>());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment