Those are parenthesis, not brackets.
{ } <-- These are brackets.
Parenthesis are used define methods, and invoke method calls. They are used to differentiate methods from other types of code. Example:
int foo = 5; // A variable named foo
void foo(){ // A method named foo
return "hello";
}
print foo // This prints 5
print foo() // This prints hello
As you can see in the example, brackets are used to define the body of the method. You can also insert arguements into the parenthesis of a methed, like this:
// This takes a number as an argument and adds 1 to it
void foo(aNumber){
aNumber += 1;
}
I **highly** suggest you familiarize yourself with basic programming techniques before doing **anything** in Unity. Otherwise you'll keep coming back here and flooding UnityAnswers with incredibly basic questions like this. Sorry but I have to downvote the question, it doesn't belong here. Google "basic programming" and do some tutorials.
↧