sonic-radiance/sonic-radiance.love/scenes/battlesystem/controllers/parent.lua

23 lines
402 B
Lua
Raw Normal View History

2020-07-18 09:51:02 +02:00
local ControllerParent = Object:extend()
function ControllerParent:new(owner)
self.owner = owner
self.activeActor = nil;
self.startData = {}
end
function ControllerParent:setActive(activeActor)
self.activeActor = activeActor
activeActor:setActive()
end
function ControllerParent:update(dt)
end
function ControllerParent:endAction()
self.owner:nextAction()
end
return PlayerController