How do I get something to happen if I click on a GUI button.
GUI.Button returns a bool (true or false), so you do something like:
function OnGUI () {
if (GUI.Button (Rect (10,10,150,100), "I am a button")) {
// this is where you would do something
}
}