Hi,
I have a problem. I don't know why the script gets stuck in the while Loop when I leave the sensor area.
If the while Loop the entity_list_out does not change and runs into the while Loop, entity_list_out is deleted by the Clear (.count again to 0)
Then the list should be filled again, but if I am not in the sensor. the entity_list_out.Count should be 0.
Where's the problem. Do you have to reset the sensor somehow or where is the problem?
Sensor problem
I have a problem. I don't know why the script gets stuck in the while Loop when I leave the sensor area.
If the while Loop the entity_list_out does not change and runs into the while Loop, entity_list_out is deleted by the Clear (.count again to 0)
Then the list should be filled again, but if I am not in the sensor. the entity_list_out.Count should be 0.
Where's the problem. Do you have to reset the sensor somehow or where is the problem?
Code:
List<MyDetectedEntityInfo>...