public GenericFood GetOneItem() { GenericFood ret = containedItems[containedItems.Count - 1]; containedItems.Remove(ret); ret.GetComponent <GameObject>().SetActive(false); return(ret); }
public void setProtein(GenericFood gf) { this.protein = gf; }
public void setVegetable(GenericFood gf) { this.vegetable = gf; }
public void setStarch(GenericFood gf) { this.starch = gf; }
public virtual void addConveyedItem(GenericFood go) { conveyedObjects.Enqueue(go); go.gameObject.SetActive(true); go.transform.position = new Vector3(transform.position.x, transform.position.y); }
public void InsertItem(GenericFood gf) { containedItems.Add(gf); }
public override void addConveyedItem(GenericFood go) { this.InsertItem(go); }