Example #1
0
 public void Binding(IUIHandle uiHandle)
 {
     this.uiHandle = uiHandle;
     if (uiHandle != null)
     {
         uiHandle.RegistCallBack(OnCallBack);
         uiHandle.RegistClose(OnClose);
         uiHandle.RegistCreate(OnCreate);
     }
 }
Example #2
0
    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);
            handle.RegistClose(OnClose);
            handle.RegistCreate(OnCreate);
        }
    }