This commit is contained in:
vis2k 2021-08-11 13:59:52 +08:00
parent cf29a06bca
commit 6c5bee8106

View File

@ -60,10 +60,7 @@ public IEnumerator LocalPlayerIsSetToNullAfterDestroyMessage()
Assert.That(NetworkClient.localPlayer, !Is.Null);
// OnObjectDestroy, wait one frame, localPlayer should be cleared
NetworkClient.OnObjectDestroy(new ObjectDestroyMessage
{
netId = identity.netId
});
NetworkClient.OnObjectDestroy(new ObjectDestroyMessage{netId = identity.netId});
yield return null;
Assert.IsTrue(NetworkClient.localPlayer is null, "local player should be set to c# null");
}