Example #1
0
    // Methods ////////////////////////////////////////////////////////////////////////////////////

    public static CardSelling GetInstance()
    {
        if (StateInstance == null)
        {
            StateInstance = new CardSelling();
        }
        return(StateInstance);
    }
Example #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();
        }
    }