Пример #1
0
    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) => { });
    }
Пример #2
0
 public GameObject GetRootButton()
 {
     RootButton.GetComponent <Button>().interactable = true;
     RootButton.SetActive(true);
     return(RootButton);
 }