private void Awake() { if (Instance != null) { DestroyImmediate(gameObject); return; } Instance = this; DontDestroyOnLoad(gameObject); Load_Music(); Load_SoundFX(); Load_VoiceOver(); }
private void Awake() { if (Instance != null) { DestroyImmediate(gameObject); return; } Instance = this; DontDestroyOnLoad(gameObject); aud = GetComponent<AudioSource>(); soundDB = GetComponent<Sound_Music_Holder>(); aud.pitch = 1f; }