using System.Collections; using System.Collections.Generic; using UnityEngine; public class meleeWeaponInventoryPrefabCreationSystem : inventoryPrefabCreationSystem { public override void createInventoryPrefabObject () { meleeWeaponPickup currentMeleeWeaponPickup = GetComponent (); inventoryObject currentInventoryObject = GetComponentInChildren (); string newName = currentInventoryObject.inventoryObjectInfo.Name; currentMeleeWeaponPickup.setMeleeWeaponName (newName); } }