Пример #1
0
    public void RefreshPlayerBar()
    {
        UpdateTurnIndicator();

        switch (GameManager.instance.CurrentGamePhase)
        {
        case GameManager.GamePhases.Setup:
            ShowUpgradesInHand();
            break;

        default:
            if (Player.RedeployUnits.Count == 0 || !IsActivePlayerBar)
            {
                handUI.DisplayHandList(gameplayUI, Player.Hand.cardList, IsActivePlayerBar, Id);
                gameplayUI.SetActionButtonState(true);
            }
            else
            {
                handUI.DisplayHandList(gameplayUI, Player.RedeployUnits, IsActivePlayerBar, Id, true);
                gameplayUI.SetActionButtonState(false);
            }
            break;
        }

        cardListsUI.RefreshCurrentList();
        resourceUI.RefreshResourceUI();
        heroUI.RefreshHeroUI();
        cardFunctionUI.RefreshCardFunctionUI();

        cardListsUI.gameObject.SetActive(false);
    }