Пример #1
0
        void Awake() {
            if(this.parentNode != null)
                return;

            var temp = this.transform.parent.gameObject.GetComponent<StunBlock>() as StunBlock;
            if(temp == null)
                return;

            this.parentNode = temp;
        }
Пример #2
0
        void Awake()
        {
            if (this.parentNode != null)
            {
                return;
            }

            var temp = this.transform.parent.gameObject.GetComponent <StunBlock>() as StunBlock;

            if (temp == null)
            {
                return;
            }

            this.parentNode = temp;
        }