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