private IEnumerator click() { PlayClickSound.play(); transform.localScale /= scaleFactor; yield return(new WaitForSeconds(0.1f)); transform.localScale *= scaleFactor; }
private IEnumerator click() { PlayClickSound.play(); darkerColor(true); gameObject.transform.localScale /= scaleFactor; yield return(new WaitForSeconds(0.15f)); gameObject.transform.localScale *= scaleFactor; darkerColor(false); }
public void Click() { PlayClickSound?.Invoke(); }