Exemple #1
0
    public GenericFood GetOneItem()
    {
        GenericFood ret = containedItems[containedItems.Count - 1];

        containedItems.Remove(ret);
        ret.GetComponent <GameObject>().SetActive(false);
        return(ret);
    }
Exemple #2
0
 public void setProtein(GenericFood gf)
 {
     this.protein = gf;
 }
Exemple #3
0
 public void setVegetable(GenericFood gf)
 {
     this.vegetable = gf;
 }
Exemple #4
0
 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);
 }
Exemple #6
0
 public void InsertItem(GenericFood gf)
 {
     containedItems.Add(gf);
 }
Exemple #7
0
 public override void addConveyedItem(GenericFood go)
 {
     this.InsertItem(go);
 }