19 lines
467 B
Lua
19 lines
467 B
Lua
local ChoregraphyActionParent = require "scenes.battlesystem.actors.systems.actions.parent"
|
|
local WaitAction = ChoregraphyActionParent:extend()
|
|
|
|
function WaitAction:new(controller, args, effectArea)
|
|
WaitAction.super.new(self, controller, args, effectArea)
|
|
end
|
|
|
|
function WaitAction:start()
|
|
self.timer = 0
|
|
end
|
|
|
|
function WaitAction:update(dt)
|
|
self.timer = self.timer + dt
|
|
if (self.timer > self.args.duration) then
|
|
self:finish()
|
|
end
|
|
end
|
|
|
|
return WaitAction;
|