scenes/levels: replace individual managers calling by setManagers
This commit is contained in:
parent
b2079f5bd4
commit
caca456614
|
@ -10,10 +10,8 @@ function Entity:new(world, type, x, y, w, h) -- On enregistre une nouvelle entit
|
|||
end
|
||||
|
||||
function Entity:initPhysics(world, type, x, y, w, h)
|
||||
self.scene = world.scene
|
||||
self.world = world
|
||||
self:setManagers(world)
|
||||
self.camera = self.scene.camera
|
||||
self.obj = self.world.obj
|
||||
self.type = type
|
||||
|
||||
self.gacc = 550
|
||||
|
|
Loading…
Reference in New Issue