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

22 lines
592 B
Lua
Raw Permalink Normal View History

2021-11-25 10:57:13 +01:00
local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
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;