/// <summary> /// 关闭并清除历史记录 /// </summary> public void Clear() { if (typeValue != UIStackType.NULL) { UIStackDic.Clear(typeValue); } }
public virtual void Open() { if (typeValue != UIStackType.NULL) { UIStackDic.Open(typeValue, this.gameObject); } else { gameObject.SetActive(true); } }
public virtual void Close() { if (!this.gameObject.activeInHierarchy) { return;//已经隐藏的界面调用不进行栈操作 } if (typeValue != UIStackType.NULL) { UIStackDic.Close(typeValue); } else { gameObject.SetActive(false); } }