//jos aktivoituu, lisää pelaajan ItemCounteriin yhden itemin. void OnTriggerEnter(Collider other) { if (other.tag == "Player") { if (gameObject.tag == "Coin") { other.GetComponent <PlayerMovement>().coins++; Debug.Log("Coin collected"); MeshCollider.Destroy(this); Coin_Pickup.Play(); StartCoroutine(die()); } } }