Can anyone help, I’ve included coin pick ups in the project boost, here is the code I’ve put in :-
void OnTriggerEnter(Collider other) {
if (other.gameObject.CompareTag("Pick Up"))
audioSource.PlayOneShot(pickUp);
{
other.gameObject.SetActive(false);
}
}
problem is it only plays the sound when i’m actually thrusting, if i’m not thrusting there is no sound.