using System; using System.Collections.Generic; using System.Linq; using UnityEngine; public class CameraRoot: MonoBehaviour { public static readonly List RootList = new List(); private static CameraRoot _instance; public static CameraRoot Instance => _instance; private Camera _camera; public Camera Camera => _camera; private void Awake() { _camera = GetComponentInChildren(); } }