public static int OnMove(IntPtr l) { int result; try { IMoveHandler moveHandler = (IMoveHandler)LuaObject.checkSelf(l); AxisEventData eventData; LuaObject.checkType <AxisEventData>(l, 2, out eventData); moveHandler.OnMove(eventData); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
private static void Execute(IMoveHandler handler, BaseEventData eventData) { handler.OnMove(ValidateEventData <AxisEventData>(eventData)); }