mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
f0579835ca
commit
0b44ccee99
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user