Exemple #1
0
        public override async ETTask <UI> OnCreate(UIComponent uiComponent)
        {
            UI ui = await DUIHelper.InstantiateFromBundle(uiComponent, DUIType.UILogin);

            ui.AddComponent <DUILoginComponent>();

            return(ui);
        }
Exemple #2
0
 protected override async ETTask Run(AppEventType.AppStartInitFinish args)
 {
     await DUIHelper.Create(args.ZoneScene, DUIType.UILogin);
 }
Exemple #3
0
 public override void OnRemove(UIComponent uiComponent)
 {
     DUIHelper.UnloadBundle(DUIType.UILogin);
 }
Exemple #4
0
 protected override async ETTask Run(AppEventType.LoginFinish args)
 {
     await DUIHelper.Remove(args.ZoneScene, DUIType.UILogin);
 }