private static int SkillBtnClick(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); FightLogic fightLogic = (FightLogic)ToLua.CheckObject(L, 1, typeof(FightLogic)); fightLogic.SkillBtnClick(); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }