This is my code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Item
{
public Inventory inventory;
public enum ItemType
{
Blocks,
Potions,
Weapons,
}
public ItemType itemType
public bool stackable;
}
and what I am trying to do is to change only the enum ItemType Blocks to stackable so that I can just use the add the item to the list, and if the item is blocked, it will be set to stackable by default.
how can I achieve this?
I tried ItemTypes.Blocks.stackable = true; But it won't work.