Sa
Sa
JCHJava Community | Help. Code. Learn.
Created by Sa on 10/6/2024 in #java-help
fix code :)
this works
6 replies
JCHJava Community | Help. Code. Learn.
Created by Sa on 10/6/2024 in #java-help
fix code :)
public static <T extends ScreenUpdatable> void updateScreenUpdatable(Array<T> items, float delta) {
for(T item : items) {
if (item.isDestroyed())
items.removeValue(item, true);
else
item.update(delta);
}
}
public static <T extends ScreenUpdatable> void updateScreenUpdatable(Array<T> items, float delta) {
for(T item : items) {
if (item.isDestroyed())
items.removeValue(item, true);
else
item.update(delta);
}
}
6 replies