Пример #1
0
    public void NextTurn()
    {
        _turn_count++;
        techViewPresenter?.OnNextTurn();
        actionHandler.ProceedToNextState();

        bool    isDieaseExplode  = diseaseManager.IsExplodeDisease();
        Village newInfectVillage = diseaseManager.GetExplodeVillage(villageManager.villages);

        if (newInfectVillage != null && isDieaseExplode)
        {
            newInfectVillage.SetDisease();
        }

        if (villageManager != null)
        {
            villageManager.ProceedToNextState();
        }

        UpdateHeaderUIView();

        if (villageManager.villageAliveCount <= 0)
        {
            gameOverTipsView.SetTitle("Kingdom Fall");
        }
    }