123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using FairyGUI;
- using Sirenix.Utilities;
- using UnityEngine;
- namespace ET.Client
- {
- //[Event(SceneType.None)]
- public class LoginFinish_CreateLobbyUI //: AEvent<EventType.LoginFinish>
- {
- /*protected override async ETTask Run(Scene scene, EventType.LoginFinish args)
- {
- EnterMapHelper.EnterMapAsync(scene, args.player, args.player.instanceId).Coroutine();
- Log.Debug("enter lobby.");
- var view = await UIHelper.Create("Lobby");
- InitView(scene, args.player, view);
- }
- private void InitView(Scene scene, Player player, GComponent view)
- {
- var name = view.GetChild("userName");
- var level = view.GetChild("UserLevel");
- var gem = view.GetChild("txt_gem");
- var gold = view.GetChild("txt_gold");
- var point = view.GetChild("txt_point");
- name.text = "大老板";
- level.text = "99";
- gem.text = "888";
- gold.text = "666";
- point.text = "777";
- var btn = view.GetChild("Btn_PVP");
- btn.onClick.Add(() =>
- {
- EnterMapHelper.EnterMapAsync(scene, player, player.instanceId).Coroutine();
- });
- btn = view.GetChild("Btn_PVE");
- btn.visible = false;
- }*/
- }
- }
|