Hello there,
I’ve said this too much lately 😛
To all new coders/users here (and ofc anyone who didnt know already). If you are unsure of how a class/method/variable works.
Try googling: “Insert name of class/method/variable here” + unity scripting api.
For most things it has a good explanation and sample code too 🙂
I always have it open while coding and just search whatever I need to know about.
LINK:
http://docs.unity3d.com/ScriptReference/