Example #1
0
    private void updatePanel()
    {
        App    app    = UnityEngine.Object.FindObjectOfType <App>();
        Nation player = State.getNations()[app.GetHumanIndex()];

        currentResearchPoints.text = player.Research.ToString();
        numberPattents.text        = player.getPatents().Count.ToString();
        researchLevel.text         = player.getResearchLevel().ToString();

        bool able = PlayerCalculator.canDoResearch(player);

        if (able)
        {
            conductResearch.interactable = true;
        }
        conductResearch.interactable = false;
    }