예제 #1
0
        void Awake() {
            if ( _current != null && _current != this ) {
                DestroyImmediate(this.gameObject);
                return;
            }

            DontDestroyOnLoad(gameObject);
            _current = this;
        }
예제 #2
0
        ///----------------------------------------------------------------------------------------------

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

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

            debugingGraphOwner = null;
            DontDestroyOnLoad(gameObject);
            _current = this;
        }
예제 #4
0
 ///<summary>Creates the MonoManager singleton</summary>
 public static void Create()
 {
     _current = current;
 }
예제 #5
0
 ///Creates MonoManager singleton
 public static void Create() { _current = current; }