Skip to content

Commit

Permalink
tweaks and remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
WilloIzCitron committed May 15, 2024
1 parent 70b5000 commit 122712b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bluearchive/units/UnitSound.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
public class UnitSound {
public static Seq<Sound> arrivalSound = Seq.with();
public static Seq<Sound> hitSound = Seq.with();
protected static Sound lastSound;
protected static Sound currentSound;
static Interval hitInterval = new Interval(5);
public static void init() {
// tecta atlas start
Events.on(UnitUnloadEvent.class, e -> {
Events.on(PayloadDropEvent.class, e -> {
if (e.unit.type == Vars.content.unit("tecta")) {
arrivalSound = Seq.with(new Sound(Vars.tree.get("sounds/units/tecta-arrival1.ogg")), new Sound(Vars.tree.get("sounds/units/tecta-arrival2.ogg")));
arrivalSound.random().play();
Expand Down

0 comments on commit 122712b

Please sign in to comment.