//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); }
//Function handles the assigment of variables with an attached stock object public void Settings(stockObject otherobject) { stockItemName = otherobject.stockItemName; stockShelf = GameObject.Find(otherobject.stockShelf); }