Ejemplo n.º 1
0
 protected virtual void Start()
 {
     if (!(_content is FilebasedContent))
     {
         throw new ArgumentException();
     }
     _filebasedContent = (FilebasedContent)_content;
     _button.onClick.AddListener(onClick);
 }
Ejemplo n.º 2
0
 protected virtual void Start()
 {
     if (!(_content is FilebasedContent))
     {
         throw new ArgumentException();
     }
     _filebasedContent = _content as FilebasedContent;
     updateText();
     _filebasedContent.Data.OnPathChanged += onPathChanged;
 }