예제 #1
0
 public override void Execute(Miner t)
 {
     t.Tired();
     t.MakeGold();
     if (t.FullGold())
     {
         t.GetStateMachine().ChangeState(StateBank.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());
     }
 }