Example #1
0
File: ATM.cs Project: TerraPass/ATM
 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);
 }
Example #2
0
File: ATM.cs Project: TerraPass/ATM
 public void EjectCard()
 {
     _currentCard = null;
     ReturnToIdle();
 }