diff --git a/Assets/Mirror/Components/InterestManagement/Scene/SceneInterestManagement.cs b/Assets/Mirror/Components/InterestManagement/Scene/SceneInterestManagement.cs index cffdbdbb9..71f8767b2 100644 --- a/Assets/Mirror/Components/InterestManagement/Scene/SceneInterestManagement.cs +++ b/Assets/Mirror/Components/InterestManagement/Scene/SceneInterestManagement.cs @@ -5,12 +5,10 @@ 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; - } + // the newly spawned 'newObserver' can see the already existing + // 'identity' if they both have the same 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 newObservers, bool initialize)