CapyCamera.cs 312 B

123456789101112131415
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class CapyCamera : MonoBehaviour
  5. {
  6. public Camera targetCamera;
  7. public Camera myCamera;
  8. // Update is called once per frame
  9. void Update()
  10. {
  11. myCamera.fieldOfView= targetCamera.fieldOfView;
  12. }
  13. }