using System.Collections; using System.Collections.Generic; using ET.Client; using UnityEngine; public class PreviewCameraController : MonoBehaviour { public GameObject FollowMainCamera; private Camera _camera; public void Update() { if (!gameObject.activeSelf) return; if (_camera != null && FollowMainCamera != null && FollowMainCamera.GetComponent() != null) _camera.orthographicSize = FollowMainCamera.GetComponent().orthographicSize; } public void Start() { _camera = GetComponent(); } }