Exemplo n.º 1
0
 public virtual void Awake()
 {
     UnitySingleton <T> .Register(this as T);
 }
Exemplo n.º 2
0
 public static void RegisterUnitySingleton <T>(T obj) where T : MonoBehaviour
 {
     UnitySingleton <T> .Register(obj);
 }