Exemple #1
0
    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);
    }
Exemple #3
0
 public void Click()
 {
     PlayClickSound?.Invoke();
 }