mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
467b869042
commit
bb501ae920
@ -4,13 +4,11 @@
|
||||
namespace Mirror
|
||||
{
|
||||
public class SceneInterestManagement : InterestManagement
|
||||
{
|
||||
public override bool OnCheckObserver(NetworkIdentity identity, NetworkConnection newObserver)
|
||||
{
|
||||
// the newly spawned 'newObserver' can see the already existing
|
||||
// 'identity' if they both have the same scene.
|
||||
return newObserver.identity.gameObject.scene == identity.gameObject.scene;
|
||||
}
|
||||
public override bool OnCheckObserver(NetworkIdentity identity, NetworkConnection newObserver) =>
|
||||
newObserver.identity.gameObject.scene == identity.gameObject.scene;
|
||||
|
||||
// for this 'identity', put everyone who sees it into 'newObservers'
|
||||
public override void OnRebuildObservers(NetworkIdentity identity, HashSet<NetworkConnection> newObservers, bool initialize)
|
||||
|
Loading…
Reference in New Issue
Block a user