How do i prevent an audio file (in this case some music) from playing again when its already playing, The script below is attatched to an empty object with the audio on it.
public class audioMisc : MonoBehaviour {
void Update () { DontDestroyOnLoad(gameObject); } }
There is already a question like that anwsered
Hope it helped
Try the solution mentioned there
DontDestroyOnLoad but script being excuted multiple times - Unity Answers