Esempio n. 1
0
    public PAGES_TRANSITIONS inTransition = PAGES_TRANSITIONS.NONE; // True when a page is being turned


    // Getter and setter for book state
    public void SetOpened()
    {
        state = BOOK_STATE.OPENED;

        // Notify listeners that the book is opened
        if (_onBookOpen != null)
        {
            _onBookOpen.Invoke();
        }
    }
Esempio n. 2
0
    public void SetClosed()
    {
        state = BOOK_STATE.CLOSED;

        // Notify listeners that the book is closed
        if (_onBookClose != null)
        {
            _onBookClose.Invoke();
        }
    }
Esempio n. 3
0
 public void SetClosing()
 {
     state = BOOK_STATE.CLOSING;
 }
Esempio n. 4
0
 public void SetOpening()
 {
     state = BOOK_STATE.OPENING;
 }