Exemple #1
0
    //Function handles the removal of the first element while retaining the data from the
    //stock object
    public stockObject Pop()
    {
        stockObject tmpObj = cageDB[0];

        cageDB.Remove(cageDB[0]);
        return(tmpObj);
    }
Exemple #2
0
 //Function handles the assigment of variables with an attached stock object
 public void Settings(stockObject otherobject)
 {
     stockItemName = otherobject.stockItemName;
     stockShelf    = GameObject.Find(otherobject.stockShelf);
 }