miepzerino
2023-12-18 cb24700e024e624fefbc1593647eab74222a5c58
Assets/Scripts/Managers/SoundManager.cs
@@ -74,10 +74,13 @@
            Debug.Log("More than one SoundManager in the Scene.");
            if (instance != this)
            {
                GameObject gameObjectToDelete = SoundManager.instance.gameObject;
                instance = this;
                //GameObject gameObjectToDelete = SoundManager.instance.gameObject;
                //instance = this;
                //Debug.Log("deleted wrong soundManager");
                //Destroy(gameObjectToDelete);
                Debug.Log("deleted wrong soundManager");
                Destroy(gameObjectToDelete);
                Destroy(this.gameObject);
                return;
            }
        }
        else