void OnMouseUp() { clicked = !clicked; myChar.GetReady(clicked); if (clicked) { GameObject.Find("Button").GetComponent <SpriteRenderer>().sprite = Resources.Load("Images/mainUI/components/lobby_ready_touch", typeof(Sprite)) as Sprite; } else { GameObject.Find("Button").GetComponent <SpriteRenderer>().sprite = Resources.Load("Images/mainUI/components/lobby_ready", typeof(Sprite)) as Sprite; } audio.Play(); }