Exemple #1
0
    public override void Execute(Miner miner)
    {
        //If miner is thirsty, buy a whiskey and drink it
        if (miner.IsThirsty())
        {
            miner.BuyAndDrinkWhisky();
            Debug.Log(miner.ID + " That's mighty fine sippin liquer");

            //And then go back to dig mine
            miner.ChangeState(EnterMineAndDigForNugget.Instance);
        }
        //Else WE HAVE A LOGICAL ERROR HERE!
        else
        {
            Debug.Log("ERROR ERROR ERROR");
        }
    }