private void Update()
 {
     if (currentNode != null)
     {
         scrollRect.ScrollRepositionY(currentNode.GetComponent <RectTransform>());
     }
 }
Пример #2
0
 private void Update()
 {
     if (currentBranch != null)
     {
         talentRect.ScrollRepositionY(currentBranch.GetComponent <RectTransform>(), 25);
     }
     if (player != null && player.talentTree.skillPoints > 0)
     {
         Text text = tabButton.GetComponentInChildren <Text>();
         text.color = Color.yellow;
     }
     else
     {
         Text text = tabButton.GetComponentInChildren <Text>();
         text.color = Color.black;
     }
 }
Пример #3
0
    private void Update()
    {
        if (currentNode != null)
        {
            switch (buysellMode)
            {
            case ShopScreenMode.Buy:
                buyRect.ScrollRepositionY(currentNode.GetComponent <RectTransform>());

                break;

            case ShopScreenMode.Sell:
                sellRect.ScrollRepositionY(currentNode.GetComponent <RectTransform>());

                break;
            }
        }
    }