fix: update dependencies

This commit is contained in:
Nova
2022-12-03 11:43:36 -05:00
parent 82b110260a
commit 43294edee4
4 changed files with 74 additions and 69 deletions

View File

@@ -55,7 +55,16 @@ impl ProtoStar {
impl LifeCycleHandler for ProtoStar {
fn logic_step(&mut self, info: LogicStepInfo) {
self.grabbable.update();
if self.grabbable.grab_action().actor_stopped() {
if let Some(icon_shrink) = &mut self.icon_shrink {
if let Some(scale) = icon_shrink.update(info.delta) {
self.icon
.set_scale(None, Vector3::from([scale; 3]))
.unwrap();
} else {
self.client.stop_loop();
}
} else if self.grabbable.grab_action().actor_stopped() {
let startup_settings =
StartupSettings::create(&self.field.spatial.client().unwrap()).unwrap();
self.grabbable
@@ -82,14 +91,5 @@ impl LifeCycleHandler for ProtoStar {
}
});
}
if let Some(icon_shrink) = &mut self.icon_shrink {
if let Some(scale) = icon_shrink.update(info.delta) {
self.icon
.set_scale(None, Vector3::from([scale; 3]))
.unwrap();
} else {
self.client.stop_loop();
}
}
}
}