sonic-radiance/sonic-radiance.love/scenes/battlesystem/choregraphy/step/startSubChoregraphies.lua

22 lines
592 B
Lua
Raw Normal View History

local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
2021-08-08 13:11:36 +02:00
local StartSubchoregraphiesStep = StepParent:extend()
function StartSubchoregraphiesStep:new(controller, args)
StartSubchoregraphiesStep.super.new(self, controller, args)
end
function StartSubchoregraphiesStep:start()
self.choregraphy:startSubChoregraphies(self.arguments.waitTime)
if (not self.arguments.blockProcess) then
self:finish()
end
end
function StartSubchoregraphiesStep:update(dt)
if (not self.choregraphy:hasNextTarget()) then
self:finish()
end
end
return StartSubchoregraphiesStep;