This script holds the information for the KeyItem. It uses IInteraction. This script is used when the player triggers an item with the tag "Intractable" from PlayerInteraction.
Interact():
This adds the keyName this key to the keyChain and then destroys the entire gameObject of itself, simulating collecting an item.
Comments
Post a Comment