public void insertCard() { if (_state is nCs) { _state = new hC(); Console.WriteLine("El estado cambio"); Console.WriteLine(_state.GetType().Name); } }
public void ejctCard() { _state.ejctCard(); if (_state is hC) { _state = new nCs(); Console.WriteLine("El estado cambio"); Console.WriteLine(_state.GetType().Name); } }