diff --git a/Assets/Mirror/Components/NetworkSceneChecker.cs b/Assets/Mirror/Components/NetworkSceneChecker.cs index b078f092d..7f412fd20 100644 --- a/Assets/Mirror/Components/NetworkSceneChecker.cs +++ b/Assets/Mirror/Components/NetworkSceneChecker.cs @@ -27,10 +27,10 @@ public class NetworkSceneChecker : NetworkBehaviour Scene currentScene; [ServerCallback] - void OnEnable() + void Awake() { currentScene = gameObject.scene; - if (LogFilter.Debug) Debug.Log($"NetworkSceneChecker.OnEnable currentScene: {currentScene}"); + if (LogFilter.Debug) Debug.Log($"NetworkSceneChecker.Awake currentScene: {currentScene}"); } public override void OnStartServer()