Пример #1
0
    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);
    }
Пример #2
0
 private static void Execute(IMoveHandler handler, BaseEventData eventData)
 {
     handler.OnMove(ValidateEventData <AxisEventData>(eventData));
 }