mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 12:09:27 +02:00
Remove reset on WorldLoadEvent
This actually works, according to playtesting, unlike the last PR
This commit is contained in:
@@ -59,6 +59,19 @@ public class HudUi {
|
||||
int maxwave;
|
||||
int coreamount;
|
||||
|
||||
public void reset(){
|
||||
bars.each(bar -> {
|
||||
weapon = new Table();
|
||||
core = new Table();
|
||||
wave = new Table();
|
||||
waveTable = new Table();
|
||||
|
||||
bar.visible = false;
|
||||
bar.clear();
|
||||
bar.remove();
|
||||
});
|
||||
}
|
||||
|
||||
public Unit getUnit(){
|
||||
Seq<Unit> units = Groups.unit.intersect(Core.input.mouseWorldX(), Core.input.mouseWorldY(), 4, 4);
|
||||
if(units.size <= 0) return player.unit();
|
||||
|
||||
Reference in New Issue
Block a user