mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
0d2733c564
commit
b495eaa965
@ -337,11 +337,12 @@ public void Destroy_HostMode_CallsOnStopAuthority()
|
||||
// need to have authority for this test
|
||||
Assert.That(player.hasAuthority, Is.True);
|
||||
|
||||
// destroy should call OnStopAuthority
|
||||
// // ignore 'Destroy called in Edit mode' error
|
||||
// destroy and ignore 'Destroy called in Edit mode' error
|
||||
LogAssert.ignoreFailingMessages = true;
|
||||
NetworkServer.Destroy(player.gameObject);
|
||||
LogAssert.ignoreFailingMessages = false;
|
||||
|
||||
// destroy should call OnStopAuthority
|
||||
Assert.That(comp.called, Is.EqualTo(1));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user