private static int SetSkillInfo(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 5); FightLogic fightLogic = (FightLogic)ToLua.CheckObject(L, 1, typeof(FightLogic)); GameObject obj = (GameObject)ToLua.CheckUnityObject(L, 2, typeof(GameObject)); GameObject skill = (GameObject)ToLua.CheckUnityObject(L, 3, typeof(GameObject)); int skillType = (int)LuaDLL.luaL_checknumber(L, 4); bool showEff = LuaDLL.luaL_checkboolean(L, 5); fightLogic.SetSkillInfo(obj, skill, skillType, showEff); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }