mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix naming conventions
This commit is contained in:
parent
6968234689
commit
4c15fcf771
@ -109,11 +109,11 @@ public override bool OnRebuildObservers(HashSet<NetworkConnection> 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<NetworkConnection> observers, bo
|
||||
return true;
|
||||
}
|
||||
|
||||
private void Add3dHits(HashSet<NetworkConnection> observers)
|
||||
private void Add3DHits(HashSet<NetworkConnection> 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<NetworkConnection> observers)
|
||||
}
|
||||
|
||||
|
||||
private void Add2dHits(HashSet<NetworkConnection> observers)
|
||||
private void Add2DHits(HashSet<NetworkConnection> observers)
|
||||
{
|
||||
// cast without allocating GC for maximum performance
|
||||
int hitCount = Physics2D.OverlapCircleNonAlloc(transform.position, visRange, hitsBuffer2D, castLayers);
|
||||
|
Loading…
Reference in New Issue
Block a user