public void Binding(IUIHandle uiHandle) { this.uiHandle = uiHandle; if (uiHandle != null) { uiHandle.RegistCallBack(OnCallBack); uiHandle.RegistClose(OnClose); uiHandle.RegistCreate(OnCreate); } }
private IEnumerator OpenPopUnPanel1000() { for (int i = 0; i < 1000; i++) { yield return(new WaitForEndOfFrame()); infoDic["title"] = string.Format("第{0}次打开", i); infoDic["info"] = "随机码:" + UnityEngine.Random.Range(0, 10000).ToString(); handle = UIFacade.Instence.Open(PanelNames.PopupPanel, infoDic); handle.RegistCallBack(OnCallBack); } }