Проектная работа - WIP
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user