mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
26d72ada5d
commit
b3820991a1
@ -120,11 +120,8 @@ public void OnConnectedEventCalled()
|
||||
bool connectCalled = false;
|
||||
NetworkServer.OnConnectedEvent = conn => connectCalled = true;
|
||||
|
||||
// listen
|
||||
// listen & connect
|
||||
NetworkServer.Listen(1);
|
||||
Assert.That(connectCalled, Is.False);
|
||||
|
||||
// connect
|
||||
transport.OnServerConnected.Invoke(42);
|
||||
Assert.That(connectCalled, Is.True);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user