Esempio n. 1
0
 private void GetCharaInfo(BaseCharacter.Info characterInfo)
 {
     TeamView.HP.text    = characterInfo.HP.ToString();
     TeamView.Level.text = characterInfo.Level.ToString();
     //TeamView.MagicAttack.text = characterInfo.MagicAttack.ToString();
     //TeamView.MagicDefense.text = characterInfo.MagicDefense.ToString();
 }
 private void GetCharaInfo(BaseCharacter.Info info)
 {
     mCharaInfo = info;
     View.CurrentWeaponName.text  = mCharaInfo.Weapon == null ? "" : mCharaInfo.Weapon.Name;
     View.CurrentHatName.text     = mCharaInfo.Hat == null ? "" : mCharaInfo.Hat.Name;
     View.CurrentClothesName.text = mCharaInfo.Clothes == null ? "" : mCharaInfo.Clothes.Name;
     View.CurrentShoesName.text   = mCharaInfo.Shoes == null ? "" : mCharaInfo.Shoes.Name;
 }
 public void Init(SaveInfo save)
 {
     this.CurrentHasEquipments = save.PlayerInfoModel.CurrentHasEquipments;
     this.Info            = save.PlayerInfoModel.Info;
     this.FinishTaskIds   = save.PlayerInfoModel.FinishTaskIds;
     this.CurrentTaskIds  = save.PlayerInfoModel.CurrentTaskIds;
     this.CurrentHasItems = save.PlayerInfoModel.CurrentHasItems;
     this.Gold            = save.PlayerInfoModel.Gold;
     this.Silver          = save.PlayerInfoModel.Silver;
     this.Copper          = save.PlayerInfoModel.Copper;
     this.Experience      = save.PlayerInfoModel.Experience;
 }
 /// <summary>
 /// 使用物品
 /// </summary>
 /// <param name="info"></param>
 private void GetCharaInfo(BaseCharacter.Info info)
 {
     this.PlayerView.Character.CharaInfo = info;
 }