example item
This commit is contained in:
@@ -43,7 +43,7 @@ pub fn spawn_rabbits(
|
||||
if let Ok(mut rng) = rng_q.single_mut() {
|
||||
// Spawn a handful of rabbits
|
||||
for _ in 0..15 {
|
||||
let cit = commands
|
||||
let rab = commands
|
||||
.spawn(Rabbit::new(
|
||||
&asset_server,
|
||||
Vec3::new(
|
||||
@@ -53,7 +53,7 @@ pub fn spawn_rabbits(
|
||||
) * TILE_SIZE,
|
||||
))
|
||||
.id();
|
||||
commands.entity(cit).insert(VisibleGameEntity);
|
||||
commands.entity(rab).insert(VisibleGameEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user