Example #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public override void TreeUpdate()
        {
            base.TreeUpdate();

            vWorldPlane = RendererUtil.GetWorldPlane(gameObject.transform);

            DidSettingsChange = (
                DidSettingsChange ||
                SizeX != vPrevSizeX ||
                SizeY != vPrevSizeY
                );

            UpdateShapeRectChildren();

            vPrevSizeX = SizeX;
            vPrevSizeY = SizeY;
        }
Example #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public override void TreeUpdate()
        {
            base.TreeUpdate();

            vWorldPlane = RendererUtil.GetWorldPlane(gameObject.transform);

            DidSettingsChange = (
                DidSettingsChange ||
                OuterRadius != vPrevOuterRad ||
                InnerRadius != vPrevInnerRad ||
                ArcDegrees != vPrevDegrees ||
                OuterOffset != vPrevOuterOff ||
                InnerOffset != vPrevInnerOff
                );

            UpdateShapeArcChildren();

            vPrevOuterRad = OuterRadius;
            vPrevInnerRad = InnerRadius;
            vPrevDegrees  = ArcDegrees;
            vPrevOuterOff = OuterOffset;
            vPrevInnerOff = InnerOffset;
        }