Toady in Unity I have added a flashlight to my first person camera. This allows the player to carry around a flashlight all of the time. I have also added some code to the flashlight so when the player presses the F key the flashlight will turn on and off. Another bit of code I have added is making the door open with an animation when the key is clicked with the mouse. The light in the level I had changed to make the flashlight visible to the player
I have made 3 more C# scripts within my project, these being named Inventory, InventoryItems and DoorController. The inventory script allows the player to pick up items that have been found in the rooms. The DoorController is simple, it controls the doors used in the level.