2021-08-15 16:34:36 +02:00
|
|
|
local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
|
2020-07-24 21:54:12 +02:00
|
|
|
local WaitStep = StepParent:extend()
|
|
|
|
|
|
|
|
function WaitStep:new(controller, args)
|
|
|
|
WaitStep.super.new(self, controller, args)
|
|
|
|
end
|
|
|
|
|
|
|
|
function WaitStep:start()
|
|
|
|
self.timer = 0
|
|
|
|
end
|
|
|
|
|
|
|
|
function WaitStep:update(dt)
|
|
|
|
self.timer = self.timer + dt
|
|
|
|
if (self.timer > self.arguments.duration) then
|
|
|
|
self:finish()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return WaitStep;
|