unity和xlua 第二步main.lua

function Awake()
    print("Lua Awake")
end

function Start()
    print("Lua Start")
end


--长时间函数
function Update()
    print("Lua Update")
end

function SceneLoaded(name)
    print("Lua SceneLoaded "..name)
end

function SceneUnloaded(name)
    print("Lua SceneUnloaded  "..name)
end

function OnApplicationFocus(focus)
    print("Lua OnApplicationFocus "..tostring(focus))
end

function OnApplicationPause(pause)
    print("Lua OnApplicationPause "..tostring(pause))
end

function OnApplicationQuit()
    print("Lua OnApplicationQuit ")
end

 

你可能感兴趣的:(总栏目)