mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
cf29a06bca
commit
6c5bee8106
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user