示例#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;
 }