gamecore/scene: scene should register themselves
This commit is contained in:
parent
fa92576979
commit
3b77a3c2c1
2 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,6 @@ function TestScene:new()
|
|||
TestScene.super.new(self)
|
||||
|
||||
self.i = 0
|
||||
|
||||
self:register()
|
||||
end
|
||||
|
||||
function TestScene:update(dt)
|
||||
|
|
|
@ -35,6 +35,8 @@ function Scene:new()
|
|||
self.assets = Assets()
|
||||
self.menusystem = MenuSystem()
|
||||
self.keys = core.input:getKeyList()
|
||||
|
||||
self:register()
|
||||
end
|
||||
|
||||
function Scene:register()
|
||||
|
|
Loading…
Reference in a new issue