fix: make nil action and choregraphy when they are finished
This commit is contained in:
parent
b9816706e5
commit
4ab2e72231
2 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,7 @@ function HeroFighter:goBackToMenu()
|
||||||
end
|
end
|
||||||
|
|
||||||
function HeroFighter:finishAction()
|
function HeroFighter:finishAction()
|
||||||
|
self.action = nil
|
||||||
self:setInactive()
|
self:setInactive()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ function ActionParent:start()
|
||||||
end
|
end
|
||||||
|
|
||||||
function ActionParent:choregraphyEnded()
|
function ActionParent:choregraphyEnded()
|
||||||
|
self.choregraphy = nil
|
||||||
self:finishAction()
|
self:finishAction()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue