fix(actor2D): fix a function being put in the wrong object
This commit is contained in:
parent
961c7816c1
commit
b7344a8973
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ function Actor2D:new(world, type, x, y, w, h, isSolid)
|
||||||
self:initHitboxes(w, h)
|
self:initHitboxes(w, h)
|
||||||
end
|
end
|
||||||
|
|
||||||
function BaseActor:destroy()
|
function Actor2D:destroy()
|
||||||
self.world:removeActor(self)
|
self.world:removeActor(self)
|
||||||
self.world:removeBody(self.mainHitbox)
|
self.world:removeBody(self.mainHitbox)
|
||||||
self.isDestroyed = true
|
self.isDestroyed = true
|
||||||
|
|
Loading…
Reference in a new issue