예제 #1
0
    void OnEquipEnchant(C2G.EquipEnchant packet, C2G.EquipEnchantAck 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);
        //Tooltip.Instance.ShowMessageKey("EquipEnchantSuccess");

        GameMain.Instance.UpdateMenu();
        GameMain.Instance.UpdatePlayerInfo();
        GameMain.Instance.UpdateNotify(false);

        PlayEnchantEffect();
    }
예제 #2
0
    void OnEquipEnchant(C2G.EquipEnchant packet, C2G.EquipEnchantAck ack)
    {
        ItemManager.Instance.Reset(ack.item);
        CreatureManager.Instance.UpdateEquip(m_Creature, ack.equip);
        Network.PlayerInfo.UseGoods(ack.use_gold);
        Tooltip.Instance.ShowMessageKey("EquipEnchantSuccess");


        m_ParticleEnchant.Play();

        GameMain.Instance.UpdateMenu();
        GameMain.Instance.UpdatePlayerInfo();
        GameMain.Instance.UpdateNotify(false);

        //Reinit();

        OnEquipEnchantCallback();
    }