Fix pathing
This commit is contained in:
+9
-7
@@ -581,12 +581,14 @@ impl FixtureTilePrefab {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn spawn(self, commands: &mut Commands) {
|
||||
commands.spawn((
|
||||
self.tile,
|
||||
self.transform,
|
||||
self.visibility,
|
||||
self.needs_occluded,
|
||||
));
|
||||
pub fn spawn(self, commands: &mut Commands) -> Entity {
|
||||
commands
|
||||
.spawn((
|
||||
self.tile,
|
||||
self.transform,
|
||||
self.visibility,
|
||||
self.needs_occluded,
|
||||
))
|
||||
.id()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user