Improving My Room In Unity

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.

unity-room-2

codingcoding-2

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: