void DeselectIfClickingAnotherChar() { /* if another dialogue is selected that is not this dialogue, then this dialogue should be deselected */ if (Input.GetMouseButtonUp(0)) { if (MouseSelection.IsClickedGameObjectName("CharacterDialog") && MouseSelection.IsClickedDifferentGameObjectTo(gameObject)) { DeselectCharDialogue(); } } }