Exemple #1
0
    public void HandleClick()
    {
        if (!_Node.IsActivated() || _Node.IsBuilding() || _Node.IsPurchased())
        {
            return;
        }

        _Node.Purchase();
        TownMenuBuildingLoader.Reload();
        RegionMenuBuildingSceneLoader.Reload();
    }
    public void EndTurn()
    {
        foreach (var region in _Regions)
        {
            region.HandleTurnEnd();
        }
        foreach (var army in _Armies)
        {
            army.HandleTurnEnd();
        }

        if (Player.Instance.SelectedArmy != null)
        {
            Player.Instance.SelectedArmy.DisplayRange();
        }

        TownMenuBuildingLoader.Reload();
        TownMenuRecruitmentLoader.Reload();
        TownMenuArmyLoader.Reload();
        RegionMenuBuildingSceneLoader.Reload();
    }