void Awake() {
            if ( _current != null && _current != this ) {
                DestroyImmediate(this.gameObject);
                return;
            }

            DontDestroyOnLoad(gameObject);
            _current = this;
        }
Esempio n. 2
0
        ///----------------------------------------------------------------------------------------------

        protected void Awake()
        {
            if (_current != null && _current != this)
            {
                DestroyImmediate(this.gameObject);
                return;
            }

            DontDestroyOnLoad(gameObject);
            _current = this;
        }
Esempio n. 3
0
        void Awake()
        {
            if (_current != null && _current != this)
            {
                DestroyImmediate(this.gameObject);
                return;
            }

            debugingGraphOwner = null;
            DontDestroyOnLoad(gameObject);
            _current = this;
        }
Esempio n. 4
0
 ///<summary>Creates the MonoManager singleton</summary>
 public static void Create()
 {
     _current = current;
 }
 ///Creates MonoManager singleton
 public static void Create() { _current = current; }