private static int InitScrollView(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 5); PrefabLoader prefabLoader = (PrefabLoader)ToLua.CheckObject(L, 1, typeof(PrefabLoader)); GameObject go = (GameObject)ToLua.CheckUnityObject(L, 2, typeof(GameObject)); int count = (int)LuaDLL.luaL_checknumber(L, 3); string cellName = ToLua.CheckString(L, 4); int focusIndex = (int)LuaDLL.luaL_checknumber(L, 5); prefabLoader.InitScrollView(go, count, cellName, focusIndex); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }