Esempio n. 1
0
 private void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
     }
     else if (singleton != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 2
0
 public void Deregister()
 {
     DestructableManager.Deregister(this);
 }
Esempio n. 3
0
 public void Register()
 {
     DestructableManager.Register(this);
 }