/*--------------------------------------------------------------------------------------------*/ public void TreeUpdate() { HoverFill hoverFill = GetComponent <HoverFill>(); int meshCount = hoverFill.GetChildMeshCount(); for (int i = 0; i < meshCount; i++) { UpdateChildMesh(hoverFill.GetChildMesh(i)); } Controllers.TryExpireControllers(); }
/*--------------------------------------------------------------------------------------------*/ private void UpdateChildFill(HoverFill pChildFill, float pAlpha) { HoverAlphaFillUpdater fillUp = pChildFill.GetComponent <HoverAlphaFillUpdater>(); if (fillUp == null) { return; } fillUp.Controllers.Set(HoverAlphaFillUpdater.SortingLayerName, this); fillUp.Controllers.Set(HoverAlphaFillUpdater.AlphaName, this); fillUp.SortingLayer = SortingLayer; fillUp.Alpha = pAlpha; }