UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"Add items to inventory at runtime"
public class InventorySystem : MonoBehaviour { List<string> items = new List<string>(); public void addItem(string itemName) { items.Add(itemName); } }