local ZUIPanelTest = {}

function ZUIPanelTest.Awake(luaRoot)
    print("ZUIPaneTest Awake~ ")
    local canvas = CS.UnityEngine.GameObject.Find("Canvas")
    local prefabPanelTest = LoadResource("Prefabs/Panel_Test.prefab")
    local canvasPanelTest = CS.UnityEngine.GameObject.Instantiate(prefabPanelTest, canvas.transform)
    canvasPanelTest.transform.name = "Panel_Test"
    ZUIPanelTest._rootCanvas = canvas
    ZUIPanelTest.canvasPanelTest = canvasPanelTest

    local text = canvasPanelTest.transform:Find("Text").gameObject
    ZUIPanelTest.text = text
end

function ZUIPanelTest.Start()
    print("ZUIPaneTest Start~ ")

    -- ZUIPanelTest.text:GetComponent("Text").text = "测试"
end

function ZUIPanelTest.OnDestroy()
    print("ZUIPaneTest OnDestroy~ ")
end

return ZUIPanelTest