void UpdateShow() { PlayerInfo info = PlayerInfo.Intance; /* * helmEquip.SetID(info.HelmID); * clothEquip.SetID(info.ClothID); * weaponEquip.SetID(info.WeaponID); * shoesEquip.SetID(info.ShoesID); * necklaceEquip.SetID(info.NecklaceID); * braceleEquip.SetID(info.BraceletID); * ringEquip.SetID(info.RingID); * wingEquip.SetID(info.WingID); */ helmEquip.SetInventoryItem(info.helmInventoryItem); clothEquip.SetInventoryItem(info.clothInventoryItem); weaponEquip.SetInventoryItem(info.weaponInventoryItem); shoesEquip.SetInventoryItem(info.shoesInventoryItem); necklaceEquip.SetInventoryItem(info.necklaceInventoryItem); braceleEquip.SetInventoryItem(info.braceletInventoryItem); ringEquip.SetInventoryItem(info.ringInventoryItem); wingEquip.SetInventoryItem(info.wingInventoryItem); leftText.text = info.HP.ToString(); damageText.text = info.Damage.ToString(); expText.text = info.Exp + "/" + GameController.GetExpByLevel(info.Level + 1); expSlider.value = (float)info.Exp / GameController.GetExpByLevel(info.Level + 1); }
void UpdateShow() { PlayerInfo info = PlayerInfo._instance; //helmEquip.SetId(info.HelmID); //clothEquip.SetId(info.ClothID); //weaponEquip.SetId(info.WeaponID); //shoesEquip.SetId(info.ShoesID); //necklackEquip.SetId(info.NecklaceID); //braceletEquip.SetId(info.BraceletID); //ringEquip.SetId(info.RingID); //wingEquip.SetId(info.WingID); ///更新装备位置显示,调用knapsckRoleEquip的函数 helmEquip.SetInventoryItem(info.helmInventoryItem); clothEquip.SetInventoryItem(info.clothInventoryItem); weaponEquip.SetInventoryItem(info.weaponInventoryItem); shoesEquip.SetInventoryItem(info.shoesInventoryItem); necklackEquip.SetInventoryItem(info.necklaceInventoryItem); braceletEquip.SetInventoryItem(info.braceletInventoryItem); ringEquip.SetInventoryItem(info.ringInventoryItem); wingEquip.SetInventoryItem(info.wingInventoryItem); hpLabel.text = info.HP.ToString(); damageLabel.text = info.Damage.ToString(); expSlider.value = (float)info.ExpNum / GameController.GetRequireExpByLevel(info.LevelNums + 1); expLabel.text = info.ExpNum + "/" + GameController.GetRequireExpByLevel(info.LevelNums + 1); }
private void UpdatePropperty() { PlayerInfo info = PlayerInfo.Instance; hpLabel.text = info.Hp.ToString(); damageLabel.text = info.Damage.ToString(); expLabel.text = info.Exp.ToString() + "/" + GameController.GetRequiredExpByLevel(info.Level + 1); expSlider.value = (float)info.Exp / GameController.GetRequiredExpByLevel(info.Level + 1); //helmEquip.Setid(info.HelmID); //clothEquip.Setid(info.ClothID); //weaponEquip.Setid(info.WeapnID); //ringEquip.Setid(info.RingID); //shoesEquip.Setid(info.ShoesID); //necklaceEquip.Setid(info.NecklaceID); //braceletEquip.Setid(info.BraceletID); //wingEquip.Setid(info.WingID); helmEquip.SetInventoryItem(info.helmInventory); clothEquip.SetInventoryItem(info.clothInventory); weaponEquip.SetInventoryItem(info.weaponInventory); ringEquip.SetInventoryItem(info.ringInventory); shoesEquip.SetInventoryItem(info.shoesInventory); necklaceEquip.SetInventoryItem(info.necklaceInventory); braceletEquip.SetInventoryItem(info.braceletInventory); wingEquip.SetInventoryItem(info.wingInventory); }
void UpdateShow() { PlayInfo info = PlayInfo._instance; helmet.SetInventoryItem(info.helmet); clothes.SetInventoryItem(info.clothes); shoes.SetInventoryItem(info.shoes); wing.SetInventoryItem(info.wing); weapon.SetInventoryItem(info.weapon); ring.SetInventoryItem(info.ring); bracelet.SetInventoryItem(info.bracelet); necklace.SetInventoryItem(info.necklace); }
void UpdateShow() { PlayerInfo info = PlayerInfo._instanc; helmEquip.SetInventoryItem(info.helmInventoryItem); clothEquip.SetInventoryItem(info.clothInventoryItem); weaponEquip.SetInventoryItem(info.weaponInventoryItem); shoesEquip.SetInventoryItem(info.shoesInventoryItem); necklackEquip.SetInventoryItem(info.necklaceInventoryItem); braceletEquip.SetInventoryItem(info.braceletInventoryItem); ringEquip.SetInventoryItem(info.ringInventoryItem); wingEquip.SetInventoryItem(info.wingInventoryItem); }