public void undo() { Color32[] undoColors = undoRedoBuffer.getForUndo(); if (undoColors != null) { applyColors(undoColors); } }