What are the main parts of a default C# Unity script?
namespace
class
Start function
Update Function
What are Comments?
lines of text that programmers use to describe what lines of code are doing for the benefit of human readers.
What is a statement?
an individual piece of code that performs some action.
What is a source code file?
Human readable instructions or commands for the computer
What do we call an object in C# terms?
Class
What 2 ways can you make a comment
Single-lined and Multi-lined
How is an end-of-statement identified?
with a semi-colon
When you create a file for c#, what extension will it have
.cs
How are curly braces used in C# scripts?
They are used to mark the beginning and end of code
Why don't comments affect the source code.
Comments are plain texted
they do no contain any program code
Where would a statement be placed?
Within a function
What are the 2 default namespaces
UnityEngine
System.Collections
What is the purpose and format of a function?
Functions are blocks of code that you may want to re-use over and over again.
void Start ()
{
}
How do you begin a single-lined Comment?
double forward slash (//)
What's the purpose of the Debug.Log Statement?
It will print a message to the console when the game is running.
The MonoBehaviour class is from what namespace?
UnityEngine
What are namespaces and how are they accessed from a script?
namespace contains a group of related objects
How do you begin and end a Multi-line comment?
start with /* and end with */
What keyword should you use in order for the namespace to work properly in your code?
using