public void Raise(DocumentSO document) { for (int i = eventListeners.Count - 1; i >= 0; --i) { eventListeners[i].OnEventRaised(document); } }
public void Initialize(DocumentSO document) { currentDocument = document; icon.sprite = document.icon; documentName.text = document.title; button.onClick.AddListener(OnButtonClick); }
public void OnEventRaised(DocumentSO document) { response.Invoke(document); }
public void AddToList(DocumentSO document) { documents.Add(document); }
public void SetDocument(DocumentSO document) { Clear(); Instantiate(document.documentPrefab, transform); }