using System.Collections; using System.Collections.Generic; using UnityEngine; namespace A2W { public class SceneSingleton : MonoBehaviour where T : MonoBehaviour { public static T instance { get { if (_instance == null) { _instance = FindObjectOfType(); } return _instance; } } private static T _instance; } }