I created an Audiosource from an audio click on all button hits. However, it gets deleted when clicking a button that loads a new scene. I'm wondering if there is an easy way to fix this, like how to add "Dontdestroyonload()" to the audio source somehow.
Code is below:
private void PlaySound()
{
AudioSource.PlayClipAtPoint(buttonClick, Camera.main.transform.position);
}
public void LoadStartMenu()
{
PlaySound();
SceneManager.LoadScene(0);
}