Exemplo n.º 1
0
    public void SetTarget(NodeComponent thisTarget)
    {
        m_Target = thisTarget;

        transform.position = m_Target.GetBuildPosition();

        if (!m_Target.m_isTurretUpgraded)
        {
            m_CostText.text = "$" + m_Target.m_Blueprint.m_UpgradeCost;
            m_SellText.text = "$" + m_Target.m_Blueprint.m_SellValue;
            m_UpgradeButton.interactable = true;
        }
        else
        {
            m_CostText.text = "MAXED";
            m_SellText.text = "$" + (m_Target.m_Blueprint.GetSellUpgrade() + m_Target.m_Blueprint.m_SellValue);
            m_UpgradeButton.interactable = false;
        }



        m_UI.SetActive(true);
    }