Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Inventory/meleeWeaponInventoryPrefabCreationSystem.cs

18 lines
530 B
C#
Raw Permalink Normal View History

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