void OpenSend(object data) { if (handle == null || !handle.Active || handle.PanelName != PanelNames.VMUsePanel) { handle = UIFacade.Instence.Open(PanelNames.VMUsePanel); } handle.Send(data); }
public void Recover() { if (uiHandle != null) { uiHandle.RemoveCallBack(OnCallBack); uiHandle.RemoveClose(OnClose); uiHandle.RemoveCreate(OnCreate); uiHandle = null; } }
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); } }
public void Add(IUIHandle handle) { UIHandles.Add(handle); handle.RegisterHotkeys(HotkeyManager); }