Example #1
0
    public void SelectNode(UITurretNode turretNode)
    {
        if (currentSelected != null)
        {
            currentSelected.IsSelected = false;
        }

        turretNode.IsSelected = true;

        currentSelected = turretNode;
    }
 private void Awake()
 {
     turretNode    = GetComponentInParent <UITurretNode>();
     textComponent = GetComponentInChildren <TMP_Text>();
     initialString = textComponent.text;
 }