//--------------------------------------------------------------------------------------------- public void OpenCardsMenu(bool show) { cardsView.GetComponent <CardMenu>().ShowCardsView(show); ShowTurnView(!show); if (show) { CurrentState = CardViewing.GetInstance(); } else { CurrentState = WaitingForAction.GetInstance(); } }
//--------------------------------------------------------------------------------------------- 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(); } }