Beispiel #1
0
 public void OnButtonClicked()
 {
     if (_clickCount > maxClickCount)
     {
         Destroy(gameObject);
     }
     Debug.Log("Clicado");
     _audioSource.PlayOneShot(_audioSource.clip);
     Instantiate(particleFx, transform.position, transform.rotation);
     _buttonAnimator.AnimateButton();
     _clickCount++;
 }