Ejemplo n.º 1
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnDisable()
 {
     CriMonoBehaviourManager.UnRegister(this);
 }