void OnMouseDown() { if (gameObject.name == "boat") { action.MoveBoat(); } else { action.CharacterIsClicked(characterController); } }