Esempio n. 1
0
        public void InsertCoin()
        {
            Console.WriteLine($"[{_name}] INSERT COIN");

            try
            {
                LoadNextState();
                _currentState.InsertCoin();
            }
            catch (Exception e)
            {
                _stateFactory.SetNextState(_stateFactory.GetErrorState(e));
            }
        }
 public void InsertCoin()
 {
     _state = _state.InsertCoin();
 }