This scripts provides common code lock functions such as:
- Code to unlock
- Failed attempt counter
- Alert / Lockdown mode
- Function to set a new code
The script uses a simple interface to call lock() and unlock() functions on your desired gameobject.
It can also be used by a standard UI instead of world space gameobjects as shown.
The demo assets and prefabs as seen are in the package to guide your implementation.