Checkpoint
This commit is contained in:
parent
0b13c0a437
commit
79e1e1a747
5 changed files with 65 additions and 33 deletions
|
@ -121,6 +121,10 @@ impl<'a, 'w> WindowContext<'a, 'w> {
|
|||
self.window.mouse_position
|
||||
}
|
||||
|
||||
pub fn scene(&mut self) -> &mut Scene {
|
||||
&mut self.window.scene
|
||||
}
|
||||
|
||||
pub(crate) fn draw(&mut self) -> Result<()> {
|
||||
let unit_entity = self.unit_entity.clone();
|
||||
self.update_entity(&unit_entity, |_, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue