示例#1
0
 public override void Execute(Miner t)
 {
     t.Recovery();
     if (t.AllRecovery())
     {
         t.GetStateMachine().ChangeState(StateWork.Instance());
     }
 }
示例#2
0
 public override void Execute(Miner t)
 {
     if (t.PayBar())
     {
         t.GoBar();
     }
     else
     {
         t.GetStateMachine().ChangeState(StateBank.Instance());
     }
     if (t.FullThirsty())
     {
         t.GetStateMachine().ChangeState(StateWork.Instance());
     }
 }
示例#3
0
 public override void Execute(Miner t)
 {
     t.SavingMoney();
     t.GetStateMachine().ChangeState(StateWork.Instance());
 }