using System.Collections; using System.Collections.Generic; using UnityEngine; public class meleeShieldInventoryPrefabCreationSystem : inventoryPrefabCreationSystem { public override void createInventoryPrefabObject () { meleeShieldPickup currentMeleeShieldPickup = GetComponent (); inventoryObject currentInventoryObject = GetComponentInChildren (); string newName = currentInventoryObject.inventoryObjectInfo.Name; currentMeleeShieldPickup.setMeleeShieldName (newName); } }