understanding the default quantity error in unity code