void Awake() { if ( _current != null && _current != this ) { DestroyImmediate(this.gameObject); return; } DontDestroyOnLoad(gameObject); _current = this; }
///---------------------------------------------------------------------------------------------- protected void Awake() { if (_current != null && _current != this) { DestroyImmediate(this.gameObject); return; } DontDestroyOnLoad(gameObject); _current = this; }
void Awake() { if (_current != null && _current != this) { DestroyImmediate(this.gameObject); return; } debugingGraphOwner = null; DontDestroyOnLoad(gameObject); _current = this; }
///<summary>Creates the MonoManager singleton</summary> public static void Create() { _current = current; }
///Creates MonoManager singleton public static void Create() { _current = current; }