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