sonic-radiance/sonic-radiance.love/game/events/event/playSFX.lua
2021-03-22 21:15:20 +01:00

16 lines
398 B
Lua

local StepParent = require "game.events.event.parent"
local SimpleMessageStep = StepParent:extend()
function SimpleMessageStep:new(controller, args)
SimpleMessageStep.super.new(self, controller, args)
end
function SimpleMessageStep:start()
self.events.scene.assets.sfx[self.arguments.sfx]:play()
end
function SimpleMessageStep:update(dt)
self:finish()
end
return SimpleMessageStep;