public void beginShow(int styleId, XIProgress x = null, bool isAutoEnd = false) { // 显示自己 XApp.instance.uiProgress.gameObject.SetActive(true); foreach (var item in styles) { if (item.Value.go) { if (item.Key != styleId) { item.Value.go.SetActive(false); } else { item.Value.go.SetActive(true); } } } _showSyleId = styleId; _isAutoEnd = isAutoEnd; setAutoProgress(x); // 重新赋值 progress = _progress; info = _info; tip = _tip; }
public void setAutoProgress(XIProgress x) { if (_xprogress != x) { _xprogress = x; } }