When pressing object to load level, it loads wrong level and randomly. Same script at all 3 balls. only loadlevel different. Why does it load wrong level?
I also added the project, its 287kb.
function Update ()
{
if (Input.GetMouseButtonDown(0))
{
var hit : RaycastHit;
var ray : Ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, hit))
{
Application.LoadLevel ("Blue");
}
}
}