Exemplo n.º 1
0
        public override void Update(ToUiData data)
        {
            ToUiPlayerProperies playerData = data as ToUiPlayerProperies;

            if (playerData == null)
            {
                return;
            }

            _playerSn     = playerData.Id;
            _gender       = playerData.Gender;
            _txtName.text = playerData.Name;
        }
Exemplo n.º 2
0
        protected override void ToUi()
        {
            ToUiAccountInfo updateObj = new ToUiAccountInfo {
                Account = _account
            };

            foreach (var one in _players)
            {
                ToUiPlayerProperies uiOne = new ToUiPlayerProperies {
                    Name = one.Name, Gender = one.Gender, Id = one.Id
                };
                updateObj.Players.Add(uiOne);
            }

            UpdataUiData(updateObj);
        }