protected override void LoadViewState(object savedState) { if (savedState != null) { object[] arrState = savedState as object[]; this.nodeText = (string)arrState[1]; this.nodeValue = (string)arrState[2]; this.linksContainer = (LinksContainer)arrState[3]; this.textContainer = (TextContainer)arrState[4]; base.LoadViewState(arrState[0]); } }
public TreeViewLinksNode(string nodeText, string nodeValue, LinksContainer linksContainer, TextContainer textContainer) { this.nodeText = nodeText; this.nodeValue = nodeValue; this.linksContainer = linksContainer; this.textContainer = textContainer; this.Text = ""; this.Value = nodeValue; this.SelectAction = TreeNodeSelectAction.Select; }
private void Awake() { linksContainer = transform.parent.parent.parent.GetComponent <LinksContainer>(); }