void ProcessInput()
{
if (Input.GetKey(KeyCode.Space))
{
rb.AddRelativeForce(Vector3.up * thrust * Time.deltaTime);
if (!SFX.isPlaying)
{
SFX.Play();
}
else
{
SFX.Stop();
}
}
}
This is what i wrote for audio. But my ausio is overlaying on top of each other and bugging out hard.
Please advise me on a fix for this