Fix
This commit is contained in:
parent
10208a4bbc
commit
d39fd278c9
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user