public override void Execute(Miner t) { t.Recovery(); if (t.AllRecovery()) { t.GetStateMachine().ChangeState(StateWork.Instance()); } }
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()); } }
public override void Execute(Miner t) { t.SavingMoney(); t.GetStateMachine().ChangeState(StateWork.Instance()); }