In the PadlockController script object - In the Unlock Events section towards the bottom.
This uses UnityEvents which allows you to click the + icon in the bottom right
You can add any GameObject into the appropriate slot and any script which has a public method, will allow this to be run.
I have an example in the demo scene, which references the Door Object, which has the script STDoorController
Within this controller there is a method called OpenDoor - Which just activates either an animation or door rotation on an axis
Last updated 13 days ago
Was this helpful?