using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : Singleton { public CameraController CameraController { get; private set; } public UiController UiController { get; private set; } private void Init() { CameraController = FindObjectOfType(); UiController = FindObjectOfType(); } protected override void OnAwake() { Init(); } }