Esempio n. 1
0
    public static int PrepareData(IntPtr l)
    {
        int result;

        try
        {
            PlayableBehaviour playableBehaviour = (PlayableBehaviour)LuaObject.checkSelf(l);
            Playable          playable;
            LuaObject.checkValueType <Playable>(l, 2, out playable);
            FrameData info;
            LuaObject.checkValueType <FrameData>(l, 3, out info);
            playableBehaviour.PrepareData(playable, info);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }