diff --git a/Assets/Mirror/Examples/AdditiveLevels/Scripts/AdditiveLevelsNetworkManager.cs b/Assets/Mirror/Examples/AdditiveLevels/Scripts/AdditiveLevelsNetworkManager.cs index ba6de4004..3309a88e8 100644 --- a/Assets/Mirror/Examples/AdditiveLevels/Scripts/AdditiveLevelsNetworkManager.cs +++ b/Assets/Mirror/Examples/AdditiveLevels/Scripts/AdditiveLevelsNetworkManager.cs @@ -1,4 +1,4 @@ -using System.Collections; +using System.Collections; using UnityEngine; using UnityEngine.SceneManagement; @@ -7,17 +7,7 @@ namespace Mirror.Examples.AdditiveLevels [AddComponentMenu("")] public class AdditiveLevelsNetworkManager : NetworkManager { - public static new AdditiveLevelsNetworkManager singleton { get; private set; } - - /// - /// Runs on both Server and Client - /// Networking is NOT initialized when this fires - /// - public override void Awake() - { - base.Awake(); - singleton = this; - } + public static new AdditiveLevelsNetworkManager singleton => (AdditiveLevelsNetworkManager)NetworkManager.singleton; [Header("Additive Scenes - First is start scene")]