mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Fixed guidance for hostId
It should be `typeof(NetworkConnection)`
This commit is contained in:
parent
11a755e961
commit
24b8003b74
@ -25,7 +25,7 @@ public class NetworkConnection : IDisposable
|
|||||||
|
|
||||||
// this is always 0 for regular connections, -1 for local
|
// this is always 0 for regular connections, -1 for local
|
||||||
// connections because it's set in the constructor and never reset.
|
// connections because it's set in the constructor and never reset.
|
||||||
[Obsolete("hostId will be removed because it's not needed ever since we removed LLAPI as default. It's always 0 for regular connections and -1 for local connections. Use connection.GetType() == NetworkConnection to check if it's a regular or local connection.")]
|
[Obsolete("hostId will be removed because it's not needed ever since we removed LLAPI as default. It's always 0 for regular connections and -1 for local connections. Use connection.GetType() == typeof(NetworkConnection) to check if it's a regular or local connection.")]
|
||||||
public int hostId = -1;
|
public int hostId = -1;
|
||||||
|
|
||||||
public NetworkConnection(string networkAddress)
|
public NetworkConnection(string networkAddress)
|
||||||
|
Loading…
Reference in New Issue
Block a user