public async ETVoid RunAsync() { FUIComponent fuiComponent = Game.Scene.GetComponent <FUIComponent>(); // 使用工厂创建一个Login UI FUI ui = await MainIntViewFactory.Create(); fuiComponent.Add(ui); }
public async ETVoid RunAsync() { FUIComponent fuiComponent = Game.Scene.GetComponent <FUIComponent>(); if (fuiComponent.Get(FUIType.GM) != null) { return; } FUI ui = await FUIGMFactory.Create(); fuiComponent.Add(ui); }
public async ETVoid RunAsync() { FUIComponent fuiComponent = Game.Scene.GetComponent <FUIComponent>(); // 使用工厂创建一个Lobby UI FUI ui = await FUILobbyFactory.Create(); fuiComponent.Add(ui); // 创建Lobby UI完成 Game.EventSystem.Run(EventIdType.CreateLobbyUIFinish); }