//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public override void TreeUpdate() { base.TreeUpdate(); vWorldPlane = RendererUtil.GetWorldPlane(gameObject.transform); DidSettingsChange = ( DidSettingsChange || SizeX != vPrevSizeX || SizeY != vPrevSizeY ); UpdateShapeRectChildren(); vPrevSizeX = SizeX; vPrevSizeY = SizeY; }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ 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; }