// Need BoxCollider or RigidBody to work on object private void OnMouseDown() { GetComponent<Renderer>().material.color = Color.blue; }