I am trying to make a script that will let you click on a game object and select it.
var IsSelected : Boolean;
(Input.GetMouseButtonDown(0)){
//Iselected = true;
}
And I attached it to a cube, but know matter where I click in the game it will select it.