This commit is contained in:
vis2k 2021-03-07 18:19:46 +08:00
parent 95e0545759
commit c20de093ec

View File

@ -44,16 +44,6 @@ public static class ClientScene
internal static readonly Dictionary<Guid, UnSpawnDelegate> unspawnHandlers =
new Dictionary<Guid, UnSpawnDelegate>();
internal static void Shutdown()
{
ClearSpawners();
spawnableObjects.Clear();
readyConnection = null;
ready = false;
isSpawnFinished = false;
DestroyAllClientObjects();
}
// add player //////////////////////////////////////////////////////////
// called from message handler for Owner message
internal static void InternalAddPlayer(NetworkIdentity identity)
@ -924,5 +914,16 @@ static void CheckForLocalPlayer(NetworkIdentity identity)
// Debug.Log("ClientScene.OnOwnerMessage - player=" + identity.name);
}
}
// shutdown ////////////////////////////////////////////////////////////
internal static void Shutdown()
{
ClearSpawners();
spawnableObjects.Clear();
readyConnection = null;
ready = false;
isSpawnFinished = false;
DestroyAllClientObjects();
}
}
}