diff --git a/Assets/Mirror/Components/NetworkProximityChecker.cs b/Assets/Mirror/Components/NetworkProximityChecker.cs index 90fc29e24..ff844514f 100644 --- a/Assets/Mirror/Components/NetworkProximityChecker.cs +++ b/Assets/Mirror/Components/NetworkProximityChecker.cs @@ -109,11 +109,11 @@ public override bool OnRebuildObservers(HashSet observers, bo switch (checkMethod) { case CheckMethod.Physics3D: - Add3dHits(observers); + Add3DHits(observers); break; case CheckMethod.Physics2D: - Add2dHits(observers); + Add2DHits(observers); break; } @@ -122,7 +122,7 @@ public override bool OnRebuildObservers(HashSet observers, bo return true; } - private void Add3dHits(HashSet observers) + private void Add3DHits(HashSet observers) { // cast without allocating GC for maximum performance int hitCount = Physics.OverlapSphereNonAlloc(transform.position, visRange, hitsBuffer3D, castLayers); @@ -143,7 +143,7 @@ private void Add3dHits(HashSet observers) } - private void Add2dHits(HashSet observers) + private void Add2DHits(HashSet observers) { // cast without allocating GC for maximum performance int hitCount = Physics2D.OverlapCircleNonAlloc(transform.position, visRange, hitsBuffer2D, castLayers);