Unlock Event

How to change the unlock event code when the door opens:
  • In the PadlockController script object, this uses UnityEvents which allows you to click the + icon in the bottom right and then add your own objects with a script with a public method.
  • I have an example in the demo scene, which uses the door object with the “DoorAnimation” script to run the code in there to open the door.
  • Just create a new event here and add your own logic