public void DisplayReadable(ReadableData rData) { if (rData.isBook) { book.gameObject.SetActive(true); SetMouseState(true, book.gameObject); book.Unpack(rData); } else { Debug.Log("Readable PC not yet implemented!"); } }
public void Unpack(ReadableData rData) { bookTitle.text = rData.title; bookText.text = rData.contents; }