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