Hello i used the following Script to Keep Playing Audio Music in different First 2 Scenes…
**Now i Want to Stop This Audio Music in Scene 3 **
What changes i do in this Script to Stop Music in scene 3,4 etc
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BGSoundScript : MonoBehaviour {
// Use this for initialization
public AudioSource Audio;
void Start () {
}
//Play Global
private static BGSoundScript instance = null;
public static BGSoundScript Instance
{
get { return instance; }
}
void Awake ()
{
if (instance != null && instance != this) {
Destroy (this.gameObject);
return;
} else {
instance = this;
}
DontDestroyOnLoad (this.gameObject);
}
//Play Gobal End
// Update is called once per frame
void Update () {
}
}
Please Help Me