Create a box or other 3D Object to act as your trigger - make sure this object has a collider set to IsTrigger
Add the PadlockTrigger script to that 3D object and add the padlock controller object to the inspector slot named PadlockController
By default the interaction key is set to E
In the PadlockController script make sure to:
Tick IsPadlockTrigger
Add the Padlock Trigger GameObject to the TriggerObject slot
Remember to take a look at the demo scene if you have any troubles, it might give you an idea on how to fix an issue.
Last updated 2 months ago