Esempio n. 1
0
 public void Reset()
 {
     if (note != null)
     {
         note.Selected = false;
     }
     this.note        = null;
     pages            = new string[0];
     noteText         = "";
     pageCount        = 1;
     currentPage      = 0;
     textContent.text = "";
     lastPageButton.gameObject.SetActive(true);
     nextPageButton.gameObject.SetActive(true);
 }
Esempio n. 2
0
    public void FillContent(NoteSlot note)
    {
        this.note   = note;
        noteText    = note.NoteContent;
        pages       = noteText.Split('|');
        pageCount   = pages.Length;
        currentPage = 0;

        textContent.text = pages[currentPage];


        lastPageButton.gameObject.SetActive(false);

        if (pageCount == 1)
        {
            nextPageButton.gameObject.SetActive(false);
        }
    }