Exemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         coinCounter.setCointCount(coinCounter.getCoinCount() + 1);
         gameObject.SetActive(false);
     }
 }