This commit is contained in:
MrGadget 2020-03-17 19:08:47 -04:00 committed by GitHub
parent fe358f7120
commit 46c80bdc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()