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); }