From 57aa714288163074ce73017d9a4f20a3bfe1682c Mon Sep 17 00:00:00 2001 From: tong Date: Sat, 29 Jan 2022 08:59:08 +0100 Subject: [PATCH] Remove unused trait script --- sound/Sources/arm/PlaySound.hx | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 sound/Sources/arm/PlaySound.hx diff --git a/sound/Sources/arm/PlaySound.hx b/sound/Sources/arm/PlaySound.hx deleted file mode 100644 index 13ba3cd..0000000 --- a/sound/Sources/arm/PlaySound.hx +++ /dev/null @@ -1,21 +0,0 @@ -package arm; - -class PlaySound extends iron.Trait { - public function new() { - super(); - - notifyOnUpdate(function() { - - var mouse = iron.system.Input.getMouse(); - - // Mouse clicked - if (mouse.started()) { - - // Randomly play one of the three hit sounds - iron.data.Data.getSound('hit' + Std.random(3) + '.wav', function(sound:kha.Sound) { - iron.system.Audio.play(sound); - }); - } - }); - } -}