fix naming conventions

This commit is contained in:
Paul Pacheco 2020-03-24 15:25:54 -05:00
parent 6968234689
commit 4c15fcf771

View File

@ -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);