Today I have been working on the door puzzle. We decided to go with the original puzzle of idea of having handles that need to be rotated to a certain point for the door to unlock. So from the original 'Puzzle Complete' script I have added the lines of code which I have highlighted in the purple boxes so that when the puzzle is complete, the door will open.
Below is a screenshot of the new script I have made which controls the door animation and makes sure that it will open once the puzzle is correct.
I have tested this in the scene I have with the 'L' shaped objects and it works.
No comments:
Post a Comment