Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     AudioSource.PlayClipAtPoint(coinPicked, Camera.main.transform.position);
     gameSession.AddCoin(coinValue);
     Destroy(this.gameObject);
 }