Ejemplo n.º 1
0
    // (1) Update cost of getting PP
    // (2) Update unit appearance   --------------------
    // (3) Update Music List
    // (4) Update Culture Card Deck

    public void swichEra()
    {
        State.NextEra();
        MyEnum.Era era = State.GerEra();


        foreach (Nation nation in State.getNations().Values)
        {
            AI       ai       = nation.getAI();
            TopLevel topLevel = ai.getTopLevel();
            topLevel.updateResourcesToKeepNewEra();
            topLevel.updateGoodsToKeepNewEra();
        }


        if (era == MyEnum.Era.Late)
        {
            earlyPP_Cost.SetActive(false);
            latePP_Cost.SetActive(true);
        }

        App   app   = UnityEngine.Object.FindObjectOfType <App>();
        Music music = app.GetComponent <Music>();

        music.goToNextEra(era);
        if (music.musicOn)
        {
            music.PlayMusic();
        }

        //State.getCultureDeck();
    }