top of page

EVL Class Room (project 1)---Code, assets and build instruction

I have made 4 codes to make the environment react to a specific action which are as follows

1) LightScript.cs

-->used to turn on and off the front light in the room.

-->2 positions are recorded for the switch namely up and down, based on the click the switch is moved to those positions.

-->an audio source is also added which is played when a click happens ie when the switch is pressed.

source code:https://github.com/srujanbelde/VR-Project1/blob/master/Assets/Scripts/LightScript.cs

2)LightScript2.cs

-->used to turn on and off the back light in the room i.e chandler.

-->2 positions are recorded for the switch namely up and down, based on the click the switch is moved to those positions.

-->an audio source is also added which is played when a click happens ie when the switch is pressed.

Sourse code:https://github.com/srujanbelde/VR-Project1/blob/master/Assets/Scripts/LightScript2.cs

3)Playsong.cs

-->used to play a song when the tape is hit

-->it is used to play a same song in a loop

--->the audio source is 3D enables with a maximum range of 5 and a costume graph

Source code: https://github.com/srujanbelde/VR-Project1/blob/master/Assets/Scripts/PlaySong.cs

4)Power.cs

--->used to power on and off the projector

--->this is triggered when the projector is hit

---->the projector screen is set to false or true based on the projector condition i.e it is off or on.

--->a sound is also added which is played when the projector is turned on or off.

source code: https://github.com/srujanbelde/VR-Project1/blob/master/Assets/Scripts/Power.cs

The complete Project can be downloaded at here:

How to build the project

1)download the project from the above link

2)un zip the file and extract it

3)open it in uinty 3d(version 5.5.03f)

4)turn on "interaction with wands" and turn off "interaction with keyboard"

5)click on file

6)select "build settings"

7) select the OS and version on which u want to run

8)select build


Featured Review
Check back soon
Once posts are published, you’ll see them here.
Tag Cloud
No tags yet.
bottom of page