// Start is called before the first frame update private void OnMouseDown() { Debug.Log("si"); parent.ButtonClicked(index); GetComponent <Renderer>().material = selected; coroutine = WaitAndPrint(time); StartCoroutine(coroutine); }