private void OnMouseDown() { ButtonHolder bh = owner.GetComponent <ButtonHolder>(); if (bh.IsResponsive()) { SpriteRenderer sr = GetComponent <SpriteRenderer>(); sr.color = Color.gray; } }
private void OnMouseUp() { ButtonHolder bh = owner.GetComponent <ButtonHolder>(); if (bh.IsResponsive()) { SpriteRenderer sr = GetComponent <SpriteRenderer>(); sr.color = Color.white; bh.ButtonPressed(myNumber); } }