public static void Initialize() { _instance = GameObject.FindObjectOfType<SoundManager>(); }
// Use this for initialization private void Awake() { // Set singleton instance of this object _instance = this; //Sets reference to scenedata. _sceneData = GameData.SceneData; }