Пример #1
0
    private void updateDevelopmentPanel(Nation player)
    {
        currentAP.text         = player.getAP().ToString();
        currentPP.text         = player.getDP().ToString();
        currentResearch.text   = player.Research.ToString();
        currentInvestment.text = player.IP.ToString();
        currentStability.text  = player.Stability.ToString();

        if (PlayerCalculator.canAddAP(player))
        {
            addAPButton.interactable = true;
        }
        else
        {
            addAPButton.interactable = false;
        }


        if (PlayerCalculator.canAddDP(player))
        {
            addDPButton.interactable = true;
        }
        else
        {
            addDPButton.interactable = false;
        }

        if (PlayerCalculator.canMakeDevelopmentAction(player) == true)
        {
            Debug.Log("Can Make Development Action");
            fundResearch.interactable      = true;
            fundCulture.interactable       = true;
            capitalInvestment.interactable = true;
            increaseStability.interactable = true;
        }
        else
        {
            Debug.Log("Cannot Make Development Action");
            fundResearch.interactable      = false;
            fundCulture.interactable       = false;
            capitalInvestment.interactable = false;
            increaseStability.interactable = false;
        }
    }