Esempio n. 1
0
        } //END Reset

        //--------------------------------------------//
        public void Awake()
        //--------------------------------------------//
        {
            BlockHelper.AddToBrandXRTechParent( transform );

            if( this.transform.parent != null )
            {
                _parentTo = this.transform.parent;
            }
            else
            {
                _parentTo = this.transform;
            }

            DestroyDuplicateInstance();
            
            if( transform.parent == null )
            {
                DontDestroyOnLoad( transform.gameObject );
            }
            
        } //END Awake
Esempio n. 2
0
        } //END Instance

        //--------------------------------------------//
        public void Reset()
        //--------------------------------------------//
        {
            BlockHelper.AddToBrandXRTechParent( transform );

        } //END Reset