Example #1
0
 public override void Execute(Miner miner)
 {
     if (miner.Thirsty())
     {
         miner.BuyAndDrinkAWhiskey();
         Debug.Log("矿工:好酒好酒!!!");
         miner.ChangeState(EnterMineAndDigForNugget.Instance);
     }
     else
     {
         Debug.LogError("出错啦");
     }
 }
Example #2
0
 public void Execute(Miner miner)
 {
     if (miner.Thirsty())
     {
         miner.BuyAndDrinkAWhiskey();
         miner.Speak("That's mighty fine sippin liquer");
         miner.ChangeState(EnterMineAndDigForNugget.Instance);
     }
     else
     {
         System.Console.ForegroundColor = System.ConsoleColor.Red;
         System.Console.WriteLine("\nERROR!\nERROR!\nERROR!");
     }
 }