private void OnTriggerEnter(Collider other) { //if(other.name=="Player") { MAN.collect(); Debug.Log("coin collected"); Destroy(gameObject); } }