private void OnTriggerEnter(Collider other) { if (other.tag == "Player") { _goldManager.SpawnGold(); } }