Continuing with Scripting
Scripting Assignment
Here is your assignment
1. Create an empty GameObject in the Hierarchy, name it CodingFirstAssignment
2. Create a C# script, name it variableScript, add the script onto the CodingFirstAssignment GameObject
3. In Visual Studios add the following to the script
1. int variable named x, initialize the value 3 into it
2. int variable named y, initialize the value 5 into it . 3. int variable named sum, initialize the variable with x + y
4. in the Start Function print out, to the console, this message
"This is the adding program that I (insert your name) have made"
5. in the Start Function print out, to the console, this message
"Adding the numbers”, int x, “and”, int y, “together, we get”, sum, “.”