Пример #1
0
    void BookEngineInterface.BEIDestroyBook(IntPtr handle)
    {
        switch (format)
        {
        case BookFormat.coolreader:
            cri.BEIDestroyBook(handle);
            break;

        case BookFormat.poppler:
            pop.BEIDestroyBook(handle);
            break;
        }
    }
Пример #2
0
    public void OnDestroy()
    {
        Debug.Log("Book is destroyed");
        bookEngine.BEIDestroyBook(bookHandle);
        bookHandle = IntPtr.Zero;

        Destroy(directRenderTexture);
        Destroy(leftPage);
        Destroy(rightPage);
        Destroy(leftPageTurn);
        Destroy(rightPageTurn);
        Destroy(frontCover);
    }