add comment

This commit is contained in:
vis2k 2019-12-31 09:30:29 +01:00
parent 2971345f37
commit 8787910d34

View File

@ -315,11 +315,12 @@ public bool StartServer()
if (LogFilter.Debug) Debug.Log("NetworkManager StartServer");
isNetworkActive = true;
// scene change needed?
// scene change needed? then change scene and spawn afterwards.
if (IsServerOnlineSceneChangeNeeded())
{
ServerChangeScene(onlineScene);
}
// otherwise spawn directly
else
{
NetworkServer.SpawnObjects();