Beispiel #1
0
    /// <summary>
    /// 加载完成
    /// </summary>
    public void StartLua()
    {
        // 绑定更新LUA时间戳
        luaUpdate = luaenv.Global.Get <DelegateLuaTimeUpdate>("LuaUpdate");

        if (luaUpdate == null)
        {
            Debug.LogError("Lua Bind UpdateLua Fail");
            return;
        }

        if (!CSharpEventToLua.Init())
        {
            Debug.LogError("CSharpEventToLua.Init Fail");
            return;
        }
    }
Beispiel #2
0
 public void Release()
 {
     CSharpEventToLua.ReleaseLuaFunction();
     luaUpdate = null;
     luaenv.Dispose();
 }