How to use

To use this system – you should just:

  1. Create empty GameObject and add Collider(IsTrigger=true) and Rigidbody components to it
  2. Add Audio source if you’ll need sound FX
  3. Attach DoorController component and tune it as you want
  4. Attach door object(with Animation component) as child and set it as AnimatedObject in DoorController
  5. If you need combination-lock – attach CodeLock component as well and assign your Player to PlayerObject parameter
  6. If you want to have door unlocked by object that “know” code – attach CodeCard component to this object and specify code to door in it.