Im getting a delay from when I click the left mouse and the shell ejects, then when the sound is played. I put print stat...

Im getting a delay from when I click the left mouse and the shell ejects, then when the sound is played. I put print statements in Fire and Ejector: shot time at 2.822892. shot audio time at 3.78 completely puzzled on this on. audio source priority is 0...though there are no other sounds competing with priority here, so really shouldn't matter.
  • Jonathan Gonzalez(jgonzalez) replied
    Not really sure why you're getting a delay on the bullet shell ejecting. Make sure you have the Eject function in the correct spot within the Fire function. You can also test it out separately by including a "Input.GetButtonDown("Fire1")" in the Eject function. Make sure you remove it from the Fire function if you do this separately. Also ensure the Eject function is in the Update function so it knows if you're pressing a button. Hope that makes sense, just a few things to try out.