public void UndoClear() { for (int i = 0; i < UndoListMaxSize; ++i) { UndoList[i].Action = null; UndoList[i].Tiles = null; } }