public void Collect(Player player) { if (!collected) { player.Inventory.NumWads++; //only want ka-ching to be audible player.StopHitAudioSource(); player.StopThudAudioSource(); AudioSourcePool.Instance.PlayOneShotClipAt(collectClip, transform.position); GameObject billParticleSystem = Instantiate(billParticleSystemPrefab); billParticleSystem.transform.position = transform.position; camShake.Shake(); Destroy(gameObject); collected = true; } }