void OnEquipUpgrade(C2G.EquipUpgrade packet, C2G.EquipUpgradeAck ack) { ItemManager.Instance.Reset(ack.item); var creature = CreatureManager.Instance.GetInfoByIdx(m_Equip.CreatureIdx); CreatureManager.Instance.UpdateEquip(creature, ack.equip); Network.PlayerInfo.UseGoods(ack.use_gold); GameMain.Instance.UpdateNotify(false); GameMain.Instance.UpdateMenu(); GameMain.Instance.UpdatePlayerInfo(); PlayEnchantEffect(); }
void OnEquipUpgrade(C2G.EquipUpgrade packet, C2G.EquipUpgradeAck ack) { ItemManager.Instance.Reset(ack.item); CreatureManager.Instance.UpdateEquip(m_Creature, ack.equip); Network.PlayerInfo.UseGoods(ack.use_gold); Tooltip.Instance.ShowMessageKey("EquipUpgradeSuccess"); m_ParticleUpgrade.Play(); GameMain.Instance.UpdateNotify(false); GameMain.Instance.UpdateMenu(); GameMain.Instance.UpdatePlayerInfo(); Reinit(); OnEquipEnchantCallback(); }