Beispiel #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "player")
     {
         coinScore.AddPoint();
         audioSource.PlayOneShot(sfxCoin);
         Respawn();
     }
 }