22 lines
402 B
Lua
22 lines
402 B
Lua
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
|