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