Main()
, which is used as the entry point.
When the script is executed (or run) by the game, it will follow the path starting from the first line of code in Main()
.void
keyword, which indicates the data type that the procedure returns.Main()
is reached, the entire script has finished executing.void
.
The returned value is then used in calculation wherever the procedure was called, as if it was a variable. void
int
float
bool
x + y = 30
.