void CanvasSetState(UICanvasBase obj, bool active) { if (active) { obj.ChengeUIState(UICanvasBase.UISTATE.ACTIVE); } else { obj.ChengeUIState(UICanvasBase.UISTATE.CLOSE); } }
public override void AddCanvas(UICanvasBase target) { if (_openCanvasHirtory.Count > 0) { var head = _openCanvasHirtory.Peek(); head.ChengeUIState(UICanvasBase.UISTATE.SLEEP); } target.gameObject.SetActive(true); _openCanvasHirtory.Push(target); target.ChengeUIState(UICanvasBase.UISTATE.ACTIVE); }