mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
* fix: #840 by allowing Mirror to respect the forceHidden flag on NetworkProximityChecker * Update NetworkProximityChecker.cs
This commit is contained in:
parent
9ff7feda9a
commit
3ec3d02362
@ -64,9 +64,12 @@ public override bool OnCheckObserver(NetworkConnection newObserver)
|
||||
|
||||
public override bool OnRebuildObservers(HashSet<NetworkConnection> observers, bool initial)
|
||||
{
|
||||
// if force hidden then return without adding any observers.
|
||||
if (forceHidden)
|
||||
return false;
|
||||
|
||||
// always return true when overwriting OnRebuildObservers so that
|
||||
// Mirror knows not to use the built in rebuild method.
|
||||
return true;
|
||||
|
||||
// find players within range
|
||||
switch (checkMethod)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user