i am having errors, how would i get the destroyed item to show up in the UI inventory system?
void OnTriggerEnter(Collider2D other)
{
playerCollecting = other.gameObject;
if (playerCollecting.tag == "Player")
{
InventorySlot(2) = playerCollecting.GetComponent,(bool = spikedWeapon) < InventorySlot > ();
OnTriggerEnter.InventorySlot(1) = true;
Destroy(gameObject);
}
}
Aucun commentaire:
Enregistrer un commentaire