protected virtual void Start() { new GameObject("Lines Container"); myRectTransform = GetComponent <RectTransform>(); NodeToButton = new Dictionary <TreeNode <E>, GameObject>(); Tree = new Tree <E>(TreeValuesGetter); InitializeNodesPool(pooledNodes); childRadius = ChildButtons[0].GetComponent <RectTransform>().rect.width / 2; rootRadius = RootButton.GetComponent <RectTransform>().rect.width / 2; Debug.Log("childRadius " + childRadius + " rootRadius" + rootRadius); CloseView((go, v2) => { }); }
public GameObject GetRootButton() { RootButton.GetComponent <Button>().interactable = true; RootButton.SetActive(true); return(RootButton); }