Update just released. Zone manager will NOT load. Here is the error
[Error] Error while compiling: ZoneManager.cs(829,70): error CS0841: A local variable `colliderBatch' cannot be used before it is declared
Update just released. Zone manager will NOT load. Here is the error
[Error] Error while compiling: ZoneManager.cs(829,70): error CS0841: A local variable `colliderBatch' cannot be used before it is declared
private void FindBuildings()
{
int entities = definition.Size != Vector3.zero ? Physics.OverlapBoxNonAlloc(definition.Location, definition.Size / 2, colBuffer, Quaternion.Euler(definition.Rotation)) : Physics.OverlapSphereNonAlloc(definition.Location, definition.Radius, colBuffer);
for (var i = 0; i < entities; i++)
{
MeshColliderBatch colliderBatch = colBuffer[i].GetComponent<MeshColliderBatch>();
colBuffer[i] = null;
if (colliderBatch == null)
continue;
List<MeshColliderLookup.LookupEntry> colliders = colliderBatch.meshLookup.src.data;
Bounds bounds = gameObject.GetComponent<Collider>().bounds;
foreach (MeshColliderLookup.LookupEntry lookupEntry in colliders)
{
if (lookupEntry.collider && lookupEntry.collider.bounds.Intersects(bounds) && lookupEntry.collider.gameObject.GetComponentInParent<BuildingBlock>())
{
OnColliderEnterZone(lookupEntry.collider);
}
}
}
} private void FindBuildings()
{
int entities = definition.Size != Vector3.zero ? Physics.OverlapBoxNonAlloc(definition.Location, definition.Size / 2, colBuffer, Quaternion.Euler(definition.Rotation)) : Physics.OverlapSphereNonAlloc(definition.Location, definition.Radius, colBuffer);
} Getting this error with replacement of those line,
(17:24:23) | Error while compiling: ZoneManager.cs(823,14): error CS1056: Unexpected character `'
Same here - "ColliderBatch" ... can't compile