void OnCollisionEnter(Collision col) { if (col.gameObject.tag == "Player") { moneyManager.AddCoinsToTotal(1); GameObject.Destroy(this.gameObject); } }