fn update(&mut self, ctx: &mut ggez::Context) {
		if self.animation.is_some() {
			let mut parameters = self.create_parameter();
			match self.animation.as_mut().unwrap().update(&mut parameters, ctx) {
				AnimationState::Continue => self.update_with_parameter(parameters),
				AnimationState::Finished => {
					self.animation.take().unwrap().finish(&mut parameters);
					self.update_with_parameter(parameters);
				}
			}
		}
	}
/// The instance progresses any animation it contains.
The instance progresses any animation it contains.
The instance progresses any animation it contains .
fn update(&mut self, ctx: &mut ggez::Context) {
		if self.animation.is_some() {
			let mut parameters = self.create_parameter();
			match self.animation.as_mut().unwrap().update(&mut parameters, ctx) {
				AnimationState::Continue => self.update_with_parameter(parameters),
				AnimationState::Finished => {
					self.animation.take().unwrap().finish(&mut parameters);
					self.update_with_parameter(parameters);
				}
			}
		}
	}
fn update ( & mut self , ctx : & mut ggez :: Context ) { if self . animation . is_some ( ) { let mut parameters = self . create_parameter ( ) ; match self . animation . as_mut ( ) . unwrap ( ) . update ( & mut parameters , ctx ) { AnimationState :: Continue => self . update_with_parameter ( parameters ) , AnimationState :: Finished => { self . animation . take ( ) . unwrap ( ) . finish ( & mut parameters ) ; self . update_with_parameter ( parameters ) ; } } } }
The instance progresses any animation it contains.
The instance progresses any animation it contains .
&mut self
ctx
&mut ggez::Context
&mut self
ctx
&mut ggez::Context