Esempio n. 1
0
    //---------------------------------------------------------------------------------------------

    public void OpenCardsMenu(bool show)
    {
        cardsView.GetComponent <CardMenu>().ShowCardsView(show);
        ShowTurnView(!show);

        if (show)
        {
            CurrentState = CardViewing.GetInstance();
        }
        else
        {
            CurrentState = WaitingForAction.GetInstance();
        }
    }
Esempio n. 2
0
    //---------------------------------------------------------------------------------------------

    public void ShowSellingControls(bool show)
    {
        cardsViewSellingControls.SetActive(show);
        cardsViewGeneralControls.SetActive(!show);

        if (show)
        {
            stateManager.CurrentState = CardSelling.GetInstance();
        }
        else
        {
            stateManager.CurrentState = CardViewing.GetInstance();
            stateManager.CurrentPlayer().ConfirmCardSell();
        }
    }