Example #1
0
		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;
		}