public TabletFace GetCurrentTabletFace() { if (tabletList == null || m_currentTabletIndex < 0 || m_currentTabletIndex >= tabletList.Count) { return(null); } TabletFace face = tabletList[m_currentTabletIndex].GetComponentInChildren <TabletFace>(); return(face); }
public void Setup(TabletFace tablet) { m_showTime = Time.time; if (tablet != null) { m_artifactName.text = tablet.artifactName; m_archaeologist.text = tablet.archeologistName; m_carbonDate.text = tablet.carbonDate; m_description.text = tablet.documentText; } else { m_artifactName.text = ""; m_archaeologist.text = ""; m_carbonDate.text = ""; m_description.text = ""; } }