//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private void UpdateShapeRectChildren() { if (!ControlChildShapes) { return; } TreeUpdater tree = GetComponent <TreeUpdater>(); for (int i = 0; i < tree.TreeChildrenThisFrame.Count; i++) { TreeUpdater child = tree.TreeChildrenThisFrame[i]; HoverShapeRect childRect = child.GetComponent <HoverShapeRect>(); if (childRect == null) { continue; } childRect.Controllers.Set(SizeXName, this); childRect.Controllers.Set(SizeYName, this); childRect.SizeX = SizeX; childRect.SizeY = SizeY; } }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private void UpdateShapeArcChildren() { if (!ControlChildShapes) { return; } TreeUpdater tree = GetComponent <TreeUpdater>(); for (int i = 0; i < tree.TreeChildrenThisFrame.Count; i++) { TreeUpdater child = tree.TreeChildrenThisFrame[i]; HoverShapeArc childArc = child.GetComponent <HoverShapeArc>(); if (childArc == null) { continue; } Quaternion offsetRot = Quaternion.Inverse(childArc.transform.localRotation); childArc.Controllers.Set(OuterRadiusName, this); childArc.Controllers.Set(InnerRadiusName, this); childArc.Controllers.Set(ArcDegreesName, this); childArc.Controllers.Set(OuterOffsetName, this); childArc.Controllers.Set(InnerOffsetName, this); childArc.OuterRadius = OuterRadius; childArc.InnerRadius = InnerRadius; childArc.ArcDegrees = ArcDegrees; childArc.OuterOffset = offsetRot * OuterOffset; childArc.InnerOffset = offsetRot * InnerOffset; } }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private void UpdateIndicatorChildren() { TreeUpdater tree = GetComponent <TreeUpdater>(); for (int i = 0; i < tree.TreeChildrenThisFrame.Count; i++) { TreeUpdater child = tree.TreeChildrenThisFrame[i]; HoverIndicator childInd = child.GetComponent <HoverIndicator>(); if (childInd == null) { continue; } childInd.Controllers.Set(HighlightProgressName, this); childInd.Controllers.Set(SelectionProgressName, this); childInd.HighlightProgress = HighlightProgress; childInd.SelectionProgress = SelectionProgress; childInd.LatestSelectionTime = LatestSelectionTime; } }