//insert to list public void Enter(AOIEntity entity) { entityList.Add(entity); xList.Insert(entity.AoiNode); yList.Insert(entity.AoiNode); zList.Insert(entity.AoiNode); CheckEnterMyAoi(entity); CheckEnterOtherAoi(entity); }
private void CheckEnterMyAoi(AOIEntity entity) { }
private void CheckEnterOtherAoi(AOIEntity entity) { }
//on entity move public void Move(AOIEntity entity, float x, float y, float z) { }
//remove from list public void Leave(AOIEntity entity) { entityList.Remove(entity); }