Example #1
0
        void Awake() {
            if(this.parentNode != null)
                return;

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

            this.parentNode = temp;
            this.warpNode = parentNode.warpNode;
            this.warpNodeCollider = this.warpNode.transform.GetChild(0).GetComponent<BoxCollider>();
        }
Example #2
0
        void Awake()
        {
            if (this.parentNode != null)
            {
                return;
            }

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

            if (temp == null)
            {
                return;
            }

            this.parentNode       = temp;
            this.warpNode         = parentNode.warpNode;
            this.warpNodeCollider = this.warpNode.transform.GetChild(0).GetComponent <BoxCollider>();
        }