Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        private void updateCharInfo()
        {
            IUserCharInfoVO userCharInfoVO = _userCharVO.getUserCharInfoVO(gameConfig);

            view.updateInfo(userCharInfoVO);
        }
Exemplo n.º 3
0
 public void updateInfo(IUserCharInfoVO userCharInfoVO)
 {
     textName.text  = userCharInfoVO.name;
     textLevel.text = userCharInfoVO.level + " level. Hp: " + userCharInfoVO.hp;
     textExp.text   = TITLE_EXP + userCharInfoVO.exp;
 }