License change
This commit is contained in:
parent
c24a9f3cec
commit
691350d991
2 changed files with 10 additions and 226 deletions
|
|
@ -20,7 +20,9 @@ pub fn card_playing_system(
|
|||
Sprite::from_image(textures.fosma_texture()),
|
||||
))
|
||||
.id();
|
||||
grid.try_set(mouse_position.0.truncate(), fosma);
|
||||
|
||||
commands.entity(event.0).despawn();
|
||||
if grid.try_set(mouse_position.0.truncate(), fosma) {
|
||||
commands.entity(event.0).despawn();
|
||||
} else {
|
||||
commands.entity(fosma).despawn();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue