void OnMouseDown() { if (gameObject.name == "boat") { action.ToggleBoat(); } else { action.ClickOnCharacter(character); } }