public static void OpenDownLoadUI(int monID, DelegateLoadFinished callBack, DelegateCloes close = null, WinType type = WinType.WT_One) { if (_instance == null) { UIDownModel modeWin = UIDownModel.CreateWin(type); if (modeWin != null) { _instance = modeWin; if (type == WinType.WT_One) { if (TeamUI.mInstance != null) { modeWin.SetWinRoot(TeamUI.mInstance.m_teamView.gameObject); } else { modeWin.SetWinRoot(DBUIController.mDBUIInstance._TopRoot); } } else { modeWin.SetWinRoot(DBUIController.mDBUIInstance._TopRoot); } } } _instance.SetDownloadModel(monID, callBack); _instance.m_EventCloes = close; }
public static void OpenDownLoadUI(int monID, DelegateLoadFinished callBack, Vector3 pos, DelegateCloes close = null, WinType type = WinType.WT_One) { OpenDownLoadUI(monID, callBack, close, type); _instance.transform.localPosition = pos; }