void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag == "Player") { Destroy(this.gameObject); gm.subtractCoin(); } }