public void InsertCard(string number) { // TODO: check whether the card is consumed!!! _currentCard = new Card(number); _currentState = State.Idle; _screen.DrawLoading(); MessageDispatcher.instance.DispatchMessage(this, Bank.instance, Message.Type.VALIDATE_CARD, currentCard.cardNumber); }
public void EjectCard() { _currentCard = null; ReturnToIdle(); }