Skip to content

Commit 9a4327b

Browse files
authored
fix contributors example (#1050)
1 parent 9602b24 commit 9a4327b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/2d/contributors.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ fn select_system(
134134
mut dq: Query<Mut<Text>, With<ContributorDisplay>>,
135135
mut tq: Query<Mut<Timer>, With<SelectTimer>>,
136136
mut q: Query<(&Contributor, &Handle<ColorMaterial>, &mut Transform)>,
137+
time: Res<Time>,
137138
) {
138139
let mut timer_fired = false;
139140
for mut t in tq.iter_mut() {
140-
if !t.just_finished() {
141+
if !t.tick(time.delta_seconds()).just_finished() {
141142
continue;
142143
}
143144
t.reset();

0 commit comments

Comments
 (0)