List<GameObject> buttons;

List<GameObject> buttons = new List<GameObject>();
にしたらうまく行きました。お騒がせしました。