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