add method RemoveAllObjectsFromArea()

This commit is contained in:
in0finite 2021-09-08 18:21:08 +02:00
parent 3d4ea8c0f5
commit 3ad3cde939

View file

@ -470,6 +470,13 @@ namespace SanAndreasUnity.Behaviours.World
}
}
public void RemoveAllObjectsFromArea(Area area)
{
this.ThrowIfConcurrentModification();
area.objectsInside = null;
}
public void Update()
{
this.ThrowIfConcurrentModification();