diff --git a/Assets/Scripts/Steamworks.NET/SteamManager.cs b/Assets/Scripts/Steamworks.NET/SteamManager.cs index 3a462c5..cd1d77c 100644 --- a/Assets/Scripts/Steamworks.NET/SteamManager.cs +++ b/Assets/Scripts/Steamworks.NET/SteamManager.cs @@ -76,8 +76,10 @@ protected virtual void Awake() { throw new System.Exception("Tried to Initialize the SteamAPI twice in one session!"); } - // We want our SteamManager Instance to persist across scenes. - DontDestroyOnLoad(gameObject); + if (transform.parent == null) { + // We want our SteamManager Instance to persist across scenes. + DontDestroyOnLoad(gameObject); + } if (!Packsize.Test()) { Debug.LogError("[Steamworks.NET] Packsize Test returned false, the wrong version of Steamworks.NET is being run in this platform.", this);