using UnityEngine; // Example: GameItem.cs [CreateAssetMenu(fileName = "Key", menuName = "Game Data/Key")] public class KeyItem : GameItem { public string keyType; // set type of key on instantiation public KeyItem() { type = ItemType.Key; } // Add other key-specific properties and methods here }