local SUILoginPanel = {}

function SUILoginPanel.Awake(luaRoot)
	SUILoginPanel.luaRoot = luaRoot

	local canvas = CS.UnityEngine.GameObject.Find("Canvas")
	SUILoginPanel._rootCanvas = canvas

	local prefabPanelLogin = CS.SFramework.SResourceManager.LoadResource("Prefabs/UI/SUILoginPanel.prefab")
	local rootPanel = CS.UnityEngine.GameObject.Instantiate(prefabPanelLogin, SUILoginPanel._rootCanvas.transform)
	SUILoginPanel.rootPanel = rootPanel
end

function SUILoginPanel.Start(luaRoot)
	print("111111")
	local rootPanel = SUILoginPanel.rootPanel
	rootPanel.transform:Find("Text"):GetComponent("Text").text = "yihao"
	
end

function SUILoginPanel.OnDestroy()

end

return SUILoginPanel