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