Thomas Doukinitsas
INTERACTIVITY: Scripting and Starting the Project

INTERACTIVITY: Scripting and Starting the Project

After a short refresh of the unity interface we explored coding in C# a bit more, and tried to finish off the Cat and Mouse script:

We also tried to create a script that changes a cube's color to random every time it's clicked. To do this we learned about the "void OnMouseDown ()" function that's called every time an object with the attached script is clicked. This caused a random color to be stored in a Vector3 variable, and then the material color was assigned to that variable.

Lastly we started to build our game, getting the spaceship and camera into position and changing the build settings to a web game.

Unknown

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

0 comments: