void Update() { if (Input.GetMouseButtonDown(0)) { //wordChecker.ClearWord(); } if (Input.GetMouseButton(0)) { selectLetter = pointer(); if (!(selectLetter.transform.parent.GetChild(1).gameObject.active)) { highlightSelection(); AddLetterToWord(); } } if (Input.GetMouseButtonUp(0)) { selectionSprite.SetActive(false); wordChecker.CheckWord(); wordChecker.ClearWord(); } }