This commit is contained in:
vis2k 2020-04-10 10:06:27 +02:00
parent f0579835ca
commit 0b44ccee99

View File

@ -122,7 +122,7 @@ public override bool OnRebuildObservers(HashSet<NetworkConnection> observers, bo
return true;
}
private void Add3DHits(HashSet<NetworkConnection> observers)
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)
void Add2DHits(HashSet<NetworkConnection> observers)
{
// cast without allocating GC for maximum performance
int hitCount = Physics2D.OverlapCircleNonAlloc(transform.position, visRange, hitsBuffer2D, castLayers);