Esempio 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());
 }
 void HandleNextClick()
 {
     SingleInstance <CurrentPlayIndex> .GetInstance.index = selectIndex;
     WindowManage.GetInstance.OpenWindow(WindowNameFactory.GetRoleRenameWindowName());
 }
Esempio 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());
        }