public bool IsShowSpine(string uibase) { UIBase uIIfExist = this.GetUIIfExist(uibase); if (uIIfExist == null) { return(true); } if (uIIfExist.get_transform() == null || !uIIfExist.get_gameObject().get_activeSelf()) { return(false); } for (int i = this.m_listOpenUI.get_Count() - 1; i >= 0; i--) { UIBase uIBase = this.m_listOpenUI.get_Item(i); if (!(uIBase == null) && !(uIBase.get_transform() == null)) { if (uIBase.prefabName == uibase) { return(true); } if (!uIBase.GetIsIgnoreToSpine()) { if (uIBase != null && uIBase.uiDepth == uIIfExist.uiDepth) { return(false); } } } } return(true); }
public void RefreshlistOpenUI(UIBase uibase0, bool isOpen) { if (uibase0 == null) { return; } if (uibase0.get_transform() == null) { return; } if (uibase0.get_transform().get_parent() != null && !UINodesManager.Is2DCanvasRoot(uibase0.get_transform().get_parent())) { return; } string prefabName = uibase0.prefabName; if (uibase0.uiDepth >= 14000) { return; } this.m_listOpenUI.Remove(uibase0); if (isOpen) { this.m_listOpenUI.Add(uibase0); } if (uibase0.GetIsIgnoreToSpine()) { return; } EventDispatcher.Broadcast("UIManagerControl.ResetSpineRendering"); }