Beispiel #1
0
 public override void OnMessage(BarTender bartender, WestWorldMessage message)
 {
     base.OnMessage(bartender, message);
     if (message.Equals(WestWorldMessage.NeedDrink))
     {
         bartender.StateMachine.ChangeState(ServeDrink.Instance);
     }
 }
Beispiel #2
0
 public override void OnMessage(Miner miner, WestWorldMessage message)
 {
     base.OnMessage(miner, message);
     if (message.Equals(WestWorldMessage.ServeDrink))
     {
         miner.DrinkWhisky();
         miner.Speak("That's mighty fine sippin' liquer");
         miner.StateMachine.ChangeState(EnterMineAndDigForNugget.Instance);
     }
 }