예제 #1
0
 public void Raise(DocumentSO document)
 {
     for (int i = eventListeners.Count - 1; i >= 0; --i)
     {
         eventListeners[i].OnEventRaised(document);
     }
 }
예제 #2
0
        public void Initialize(DocumentSO document)
        {
            currentDocument = document;

            icon.sprite       = document.icon;
            documentName.text = document.title;

            button.onClick.AddListener(OnButtonClick);
        }
예제 #3
0
 public void OnEventRaised(DocumentSO document)
 {
     response.Invoke(document);
 }
예제 #4
0
 public void AddToList(DocumentSO document)
 {
     documents.Add(document);
 }
예제 #5
0
        public void SetDocument(DocumentSO document)
        {
            Clear();

            Instantiate(document.documentPrefab, transform);
        }