コード例 #1
0
    private Equipment EquipItem(Item item)
    {
        GridItem gItem = ObjectPoolManager.Instance.GetObject <GridItem>(GRID_PREFAB_KEY);

        EquipmentUI.AddNewGridItem(gItem, item);

        Equipments[item.Equipment] = new Equipment(SlotState.Equiped, gItem);

        PlayerAttributes.EnableAttribute(item);

        OnItemEquipedEvent?.Invoke(item);

        return(Equipments[item.Equipment]);
    }