c1_lua/lua/app/scene/main/main_scene.lua
2023-04-03 10:59:13 +08:00

29 lines
527 B
Lua

local MainScene = class("battle_scene")
function MainScene:ctor()
end
function MainScene:init()
if self.root == nil then
local gameObject = CS.UnityEngine.GameObject("scene_root")
self.root = BaseObject:create()
self.root:initWithGameObject(gameObject)
self.root:setPosition(0, 0, 0)
end
Game:showLoginUI()
end
function MainScene:getRoot()
return self.root
end
function MainScene:clearAllGameObjects()
if self.root then
self.root:removeAllChildren()
end
end
function MainScene:clear()
end
return MainScene