Esempio n. 1
0
    /// <summary>아이템 사용정보 update</summary>
    /// <param name="_packet"></param>
    public static void ItemUse(Packet _packet)
    {
        int _spawnerId  = _packet.ReadInt();
        int _byPlayer   = _packet.ReadInt();
        int _itemNumber = _packet.ReadInt();

        ItemSpawner item = GameManager.itemSpawners[_spawnerId];

        item.ItemReleaseGrab();
        switch (_itemNumber)
        {
        case 1:
            GameManager.players[_byPlayer].playerItem.item_number1 = null;
            break;

        case 2:
            GameManager.players[_byPlayer].playerItem.item_number2.Remove(item);
            break;
        }
    }