public static AddLuaComponent ( |
||
go | ||
path | string | |
return |
public static QLuaComponent AddLuaComponent(GameObject go, string path)
{
QLuaComponent luaComp = go.AddComponent<QLuaComponent>();
luaComp.Initilize(path); // 手动调用脚本运行,以取得LuaTable返回值
return luaComp;
}