Exemplo n.º 1
0
        IEnumerator CreateIEnumerator()
        {
            ResourceAPI      resourceAPI      = SimpleFactory.CreateResourceAPI();
            DownLoadEventAPI downLoadEventAPI = SimpleFactory.CreateDownLoadEventAPI();

            downLoadEventAPI.OnLoadBundleDelegate += (AssetBundle bundle) =>
            {
                UIPackage.AddPackage(bundle);
                this.Inst <WindowManage>().OpenWindow(WindowNameFactory.GetLoginWindowName());
            };
            yield return(resourceAPI.LoadAssetBundle(BundleConst.WindowframeBundleName, downLoadEventAPI));
        }
 void HandleNextClick()
 {
     WindowManage.GetInstance.CloseWindow(WindowNameFactory.GetRoleRenameWindowName());
     WindowManage.GetInstance.AddMainMenu(WindowNameFactory.GetSimpleMainWindowName());
 }
Exemplo n.º 3
0
 void HandleNextClick()
 {
     SingleInstance <CurrentPlayIndex> .GetInstance.index = selectIndex;
     WindowManage.GetInstance.OpenWindow(WindowNameFactory.GetRoleRenameWindowName());
 }
Exemplo n.º 4
0
        //IEnumerator DownLoadImg(string filelocaition)
        //{
        //    GLoader gLoader = new GLoader();
        //    gLoader.url = "playericon";

        //    //string htmlCode =  string.Format("<img src={0} width='48' height='48'/>", gLoader.icon);
        //    //instace.m_HtmlText.text = htmlCode;
        //    yield return null;
        //}


        void HandleLoginClick()
        {
            WindowManage.GetInstance.OpenWindow(WindowNameFactory.GetCreateRoleWindowName());
        }