public static LuaTable AddLuaComponent(GameObject go, string luaPath, params object[] args) { LuaBehaviour luaBehaviour = go.AddComponent<LuaBehaviour>(); luaBehaviour.m_LuaPath = luaPath; luaBehaviour.InitLua(args); return luaBehaviour.LuaTable; }
public static LuaTable AddLuaComponent(GameObject go, string luaPath, params object[] args) { LuaBehaviour luaBehaviour = go.AddComponent<LuaBehaviour>(); luaBehaviour.m_LuaPath = luaPath; luaBehaviour.InitLua(args); return luaBehaviour.LuaTable; }