Exemplo n.º 1
0
        public void GiveIngredient(ProductType type)
        {
            wait_img_anim = false;
            recipe.Remove(type);
            cur_state.StartState();

            if (recipe.Count == 0)
            {
                cur_state = new ProcessState(this);
                cur_state.StartState();
            }
        }
Exemplo n.º 2
0
 public void Start()
 {
     recipe    = new List <ProductType>(def_recipe);
     cur_state = new EmptyState(this);
     cur_state.StartState();
 }
Exemplo n.º 3
0
 public void BeReady()
 {
     cur_state = new ReadyState(this);
     cur_state.StartState();
 }
Exemplo n.º 4
0
 public void StartProcess()
 {
     cur_state = new ProcessState(this);
     cur_state.StartState();
 }