public override void Run()
        {
            //加载UI资源
            ETModel.Game.Scene.GetComponent <FUIPackageComponent>().AddPackage(FUIPackage.FUI5v5Map);
            //创建UI实例
            var hotfixui = FUI5V5Map.CreateInstance();

            //默认将会以Id为Name,也可以自定义Name,方便查询和管理
            hotfixui.Name = FUIPackage.FUI5v5Map;
            //设置UI为全屏大小
            hotfixui.MakeFullScreen();
            //将UI注册到FUIComponent中,正式显示
            Game.Scene.GetComponent <FUIComponent>().Add(hotfixui, true);
        }
Esempio n. 2
0
        public override void Run()
        {
            //加载UI资源
            this.RunInternal().Coroutine();
            //创建UI实例
            var hotfixui = FUI5V5Map.CreateInstance();

            //默认将会以Id为Name,也可以自定义Name,方便查询和管理
            hotfixui.Name = FUIPackage.FUI5v5Map;
            hotfixui.GObject.sortingOrder = 39;
            //设置UI为全屏大小
            hotfixui.MakeFullScreen();
            //将UI注册到FUIComponent中,正式显示
            Game.Scene.GetComponent <FUIComponent>().Add(hotfixui, true);
        }