mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServer.SetClientReadyInternal: use bool instead of var and proper naming
This commit is contained in:
parent
c87cd7b351
commit
5e90fc1c37
@ -768,8 +768,8 @@ internal static void SetClientReadyInternal(NetworkConnection conn)
|
|||||||
|
|
||||||
if (LogFilter.Debug) { Debug.Log("Sending spawn message for current server objects name='" + identity.name + "' netId=" + identity.netId); }
|
if (LogFilter.Debug) { Debug.Log("Sending spawn message for current server objects name='" + identity.name + "' netId=" + identity.netId); }
|
||||||
|
|
||||||
var vis = identity.OnCheckObserver(conn);
|
bool visible = identity.OnCheckObserver(conn);
|
||||||
if (vis)
|
if (visible)
|
||||||
{
|
{
|
||||||
identity.AddObserver(conn);
|
identity.AddObserver(conn);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user