private void Update() { if (currentNode != null) { scrollRect.ScrollRepositionY(currentNode.GetComponent <RectTransform>()); } }
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; } }
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; } } }