public void RedoAction() { if (redoActionStack.Count != 0) { UserAction userAction = redoActionStack.Pop(); if (!userAction.IsRoute()) { onActionSetDirection(false); } userAction.Execute(); undoActionStack.Push(userAction); } }