using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XLua;
public class Lesson9_CallLuaTable : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
LuaMgr.GetInstance().Init();
LuaMgr.GetInstance().DoLuaFile("Main");
//不建议使用LuaTable和LuaFunction 效率低,产生垃圾多
//引用对象
LuaTable table = LuaMgr.GetInstance().Global.Get<LuaTable>("testClass");
Debug.Log(table.Get<int>("testInt"));
table.Set("testInr", 55);
//释放垃圾
table.Dispose();
}
// Update is called once per frame
void Update()
{
}
}