void Assign(Pot pot) { if (order.Count > 0) { pot.mealNumber = mealNumber; pot.mealColor = mealColors[mealNumber - 1]; //because 1-indexing pot.RefreshColor(); pot.required = order[0]; pot.gameObject.transform.position = pot.StartingPosition(); order.Remove(order[0]); pot.PopulateIndicators(); } }