Exemple #1
0
 // Remove instance
 protected virtual void OnDestroy()
 {
     // Remove instance
     if (_instance == this)
     {
         _instance = null;
     }
     // Abort & unload all
     UnloadAll();
 }
Exemple #2
0
 // Set instance
 protected virtual void Awake()
 {
     // Set instance
     _instance  = this;
     _delegates = false;
 }