Проектная работа - WIP

This commit is contained in:
+2 -1
View File
@@ -18,7 +18,8 @@ pub fn schedule_set_velocity(tail: Entity) -> impl Fn(On<GridBarier>, Commands,
/// Очистка [SnakePath] от старых значений
pub fn clean_snake_path(event: On<GridBarier>, query: Query<&End>, mut snake_path: ResMut<SnakePath>) {
if query.contains(event.entity) {
snake_path.remove(&event.position);
let v = snake_path.remove(&event.position);
trace!("clean_snake_path: removed {v:?} for {}", &event.position);
}
}