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(); } }
public void Start() { recipe = new List <ProductType>(def_recipe); cur_state = new EmptyState(this); cur_state.StartState(); }
public void BeReady() { cur_state = new ReadyState(this); cur_state.StartState(); }
public void StartProcess() { cur_state = new ProcessState(this); cur_state.StartState(); }