diff --git a/examples/colormaterial_color.rs b/examples/colormaterial_color.rs index 200e21f38b1f811fdafb8a2580d34e953e72aba7..51c7fa52201e292f805241e268af2c43ed55efdb 100644 --- a/examples/colormaterial_color.rs +++ b/examples/colormaterial_color.rs @@ -86,10 +86,8 @@ fn setup( .insert(bevy_tweening::AssetAnimator::new( unique_material.clone(), *ease_function, - bevy_tweening::TweeningType::PingPong { - duration: std::time::Duration::from_secs(1), - pause: Some(std::time::Duration::from_millis(500)), - }, + bevy_tweening::TweeningType::PingPong, + std::time::Duration::from_secs(1), bevy_tweening::ColorMaterialColorLens { start: Color::RED, end: Color::BLUE, diff --git a/examples/sprite_color.rs b/examples/sprite_color.rs index e290c889ab47a8dda9812013a45ee6eddeead203..48785097c2d2fe797e1b46b0d03417cdc6463c61 100644 --- a/examples/sprite_color.rs +++ b/examples/sprite_color.rs @@ -72,10 +72,8 @@ fn setup(mut commands: Commands) { }) .insert(bevy_tweening::Animator::new( *ease_function, - bevy_tweening::TweeningType::PingPong { - duration: std::time::Duration::from_secs(1), - pause: Some(std::time::Duration::from_millis(500)), - }, + bevy_tweening::TweeningType::PingPong, + std::time::Duration::from_secs(1), bevy_tweening::SpriteColorLens { start: Color::RED, end: Color::BLUE, diff --git a/examples/transform_rotation.rs b/examples/transform_rotation.rs index 870412a86049828a7b3682f832ae0f1886a4a959..5bf674909ba96b25c8ea2071038549a59af480eb 100644 --- a/examples/transform_rotation.rs +++ b/examples/transform_rotation.rs @@ -77,10 +77,8 @@ fn setup(mut commands: Commands) { }) .insert(bevy_tweening::Animator::new( *ease_function, - bevy_tweening::TweeningType::PingPong { - duration: std::time::Duration::from_secs(1), - pause: Some(std::time::Duration::from_millis(500)), - }, + bevy_tweening::TweeningType::PingPong, + std::time::Duration::from_secs(1), bevy_tweening::TransformRotationLens { start: Quat::IDENTITY, end: Quat::from_axis_angle(Vec3::Z, std::f32::consts::PI / 2.), diff --git a/examples/transform_translation.rs b/examples/transform_translation.rs index 20b831aec2e20e7eb2eb8c6922ebe8f7f4b1b769..106c3d100d9f002fa9d3da9ed4a8c0742873cbb6 100644 --- a/examples/transform_translation.rs +++ b/examples/transform_translation.rs @@ -70,10 +70,8 @@ fn setup(mut commands: Commands) { }) .insert(bevy_tweening::Animator::new( *ease_function, - bevy_tweening::TweeningType::PingPong { - duration: std::time::Duration::from_secs(1), - pause: Some(std::time::Duration::from_millis(500)), - }, + bevy_tweening::TweeningType::PingPong, + std::time::Duration::from_secs(1), bevy_tweening::TransformPositionLens { start: Vec3::new(x, screen_y, 0.), end: Vec3::new(x, -screen_y, 0.), diff --git a/examples/ui_position.rs b/examples/ui_position.rs index bd328fd947ddec53585eb0230be89ba88706f9f5..32a9ec5e8ad72c52bfb169851f92c55a78110c15 100644 --- a/examples/ui_position.rs +++ b/examples/ui_position.rs @@ -81,10 +81,8 @@ fn setup(mut commands: Commands) { }) .insert(bevy_tweening::Animator::new( *ease_function, - bevy_tweening::TweeningType::PingPong { - duration: std::time::Duration::from_secs(1), - pause: Some(std::time::Duration::from_millis(500)), - }, + bevy_tweening::TweeningType::PingPong, + std::time::Duration::from_secs(1), bevy_tweening::UiPositionLens { start: Rect { left: Val::Px(x),