24 lines
666 B
Lua
24 lines
666 B
Lua
local ChoregraphyActionParent = require "scenes.battlesystem.actors.systems.actions.parent"
|
|
local AnimationSetterAction = ChoregraphyActionParent:extend()
|
|
|
|
function AnimationSetterAction:new(controller, args, effectArea)
|
|
AnimationSetterAction.super.new(self, controller, args, effectArea)
|
|
end
|
|
|
|
function AnimationSetterAction:start()
|
|
self.actor:changeAnimation(self.args.animation)
|
|
self.actor:blockChoregraphy(self.args.blockProcess, self.args.animation)
|
|
if (self.args.blockProcess == false) then
|
|
self:finish()
|
|
end
|
|
end
|
|
|
|
function AnimationSetterAction:update(dt)
|
|
|
|
end
|
|
|
|
function AnimationSetterAction:getSignal(signal)
|
|
|
|
end
|
|
|
|
return AnimationSetterAction;
|