public void ShowDocument() { DocListButton activeDocButton = _docList.GetActiveButton(); if (activeDocButton != null) { ShowMainElement(_documentation); string docPath = activeDocButton.DocPath; var document = _documentation.GetComponent <UIDocument>(); document.ActiveDocument = docPath; document.DocumentTitle.text = IO.FILENAME(docPath); document.InputField.text = _network.GetDocument(docPath); } }
public void AddDocButton(DocListButton button) { _docButtons.Add(button); }