示例#1
0
    private void Update()
    {
        if (_actionState == ActionState.Failed)
        {
            MessagePanel msgPanel = GameFacade.Instance.UiManager.PushPanel(PanelType.Message) as MessagePanel;
            msgPanel.ShowTipsMsg("登陆失败");

            _actionState = ActionState.StandBy;//保证只执行一次
        }
        else if (_actionState == ActionState.Success)
        {
            // :登录成功后打开房间列表面板-
            RoomListPanel roomListPanel = GameFacade.Instance.UiManager.PushPanel(PanelType.RoomList) as RoomListPanel;
            //:显示玩家战绩
            roomListPanel.UpdateShowPlayerInfo(GameFacade.Instance.PlayerManager.currentLoginedUser.Id, GameFacade.Instance.PlayerManager.currentLoginedUser.Username, GameFacade.Instance.PlayerManager.currentUserScore.TotalCount, GameFacade.Instance.PlayerManager.currentUserScore.WinCount);

            _actionState = ActionState.StandBy;//保证只执行一次
        }
    }