sonic-radiance/sonic-radiance.love/scenes/battlesystem/actors/systems/actions/playSFX.lua

15 lines
354 B
Lua
Raw Normal View History

local ChoregraphyActionParent = require "scenes.battlesystem.actors.systems.actions.parent"
local PlaySFX = ChoregraphyActionParent:extend()
function PlaySFX:new(system, args, effectArea)
PlaySFX.super.new(self, system, args, effectArea)
end
function PlaySFX:start()
self.actor.assets.sfx[self.args.sfx]:play()
self:finish()
end
return PlaySFX