This commit is contained in:
haitem 2021-01-31 12:07:30 +01:00
commit be8d9e0713

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>();