03-27-2011, 10:32 PM
03-27-2011, 10:37 PM
You have some serious mistakes.
You don't put ';' when creating a function. Only when calling.
Like this:
void ThisIsAFunction(these are function parameters)
{
there are things that I want function to do;
}
Now call this function:
void OnStart() // or OnEnter, or in another function, whatever.
{
ThisIsAFunction(parameters for this function);
}
You don't put ';' when creating a function. Only when calling.
Like this:
void ThisIsAFunction(these are function parameters)
{
there are things that I want function to do;
}
Now call this function:
void OnStart() // or OnEnter, or in another function, whatever.
{
ThisIsAFunction(parameters for this function);
}