public override UIContainer FindActivityUIRectsOnMask() { UIContainer container = new UIContainer(); var uirects = FindActivityUIRectsWithCanvas(); //按层级关系排序 uirects.Sort((a, b) => { int sort = a.SortOrder.CompareTo(b.SortOrder); return(sort != 0 ? sort : a.DeepOrder.CompareTo(b.DeepOrder)); }); for (var i = 0; i < uirects.Count; i++) { if (!IsShowWithMaskFather(uirects[i].Parent, uirects[i])) { continue; } if (IsCanShow(uirects, i) && uirects[i] is ClickUIRect) { container.Insert(uirects[i]); } } container.Sort(); return(container); }
// Use this for initialization void Start() { container = new UIContainer(); var uirect = new UGUIRect(image); container.Insert(uirect); Invoke(); }
public override UIContainer FindActivityUIRects() { UIContainer container = new UIContainer(); var uirects = FindActivityUIRectsWithCanvas(); foreach (var rect in uirects) { container.Insert(rect); } container.Sort(); return(container); }