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