public void UpdateUiData(UiUpdateDataType eType, ToUiData obj) { if (!_updateDatas.ContainsKey(eType)) { _updateDatas.Add(eType, obj); } else { _updateDatas[eType] = obj; } }
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; }
public abstract void Update(ToUiData data);