private void initDialogCharInfo(int dialogId, IUserCharVO userCharVO) { GameObject userDialog = view.getUserDialog(DialogType.CHAR_INFO, dialogId); DialogCharInfoView charInfoView = userDialog.GetComponent <DialogCharInfoView> (); if (charInfoView) { IUserCharInfoVO userCharInfoVO = userCharVO.getUserCharInfoVO(gameConfig); IWeaponModel weaponModel = new WeaponModel(userCharVO.id, gameConfig); charInfoView.init(userCharInfoVO, weaponModel, dialogId); } }
private void updateCharInfo() { IUserCharInfoVO userCharInfoVO = _userCharVO.getUserCharInfoVO(gameConfig); view.updateInfo(userCharInfoVO); }
public void updateInfo(IUserCharInfoVO userCharInfoVO) { textName.text = userCharInfoVO.name; textLevel.text = userCharInfoVO.level + " level. Hp: " + userCharInfoVO.hp; textExp.text = TITLE_EXP + userCharInfoVO.exp; }