This commit is contained in:
GamerClassN7 2021-01-31 12:07:05 +01:00
parent 10208a4bbc
commit d39fd278c9

View File

@ -10,7 +10,7 @@ public class AudioManager : MonoBehaviour
// Start is called before the first frame update // Start is called before the first frame update
public void Awake() public void Awake()
{ {
DontDestroyGameobjectOnLoad(gameObject); DontDestroyOnLoad(gameObject);
foreach (AudioSound c in clips) foreach (AudioSound c in clips)
{ {
c.source = gameObject.AddComponent<AudioSource>(); c.source = gameObject.AddComponent<AudioSource>();