private void OnMouseDown() { ObjectScript foo = transform.parent.GetComponent <ObjectScript>(); foo.newGame(); }