public override void Run()
        {
            //创建UILobby 实体
            UI ui = UILobbyFactory.Create();

            //添加到UIComponent中
            Game.Scene.GetComponent <UIComponent>().Add(ui);
        }
예제 #2
0
        public override void Run()
        {
            MapHelper.EnterMapAsync("Map").Coroutine();
            return;

            UI ui = UILobbyFactory.Create();

            Game.Scene.GetComponent <UIComponent>().Add(ui);
        }
예제 #3
0
        public static void OnLoginAsync(int account)
        {
            Game.EventSystem.Run(EventIdType.LoginFinish);

            //添加玩家信息管理组件
            Game.Scene.AddComponent <PlayerInfoComponent, int>(account);

            //添加其它cube玩家的管理组件
            Game.Scene.AddComponent <OtherCubeManagerComponent>();

            //创建大厅UI
            UI ui = UILobbyFactory.Create();

            Game.Scene.GetComponent <UIComponent>().Add(ui);
        }
예제 #4
0
        public override void Run()
        {
            UI ui = UILobbyFactory.Create();

            Game.Scene.GetComponent <UIComponent>().Add(ui);
        }