We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这个例子写的有Bug 一旦UnDo后 进行新的命令就就会出现Bug 原因是UnDo后 再进行Command 没有清除之前的Comand
The text was updated successfully, but these errors were encountered:
可以把添加命令代码改为
MoveCommand moveCommand = new MoveCommand(moveCommandReciever, direction, moveDistance, objectToMove); moveCommand.Execute(); commands.Insert(currentCommandNum,moveCommand); currentCommandNum++; while (commands.Count>currentCommandNum) { commands.RemoveAt(commands.Count - 1); }
Sorry, something went wrong.
大佬,快回来改bug了
No branches or pull requests
这个例子写的有Bug 一旦UnDo后 进行新的命令就就会出现Bug 原因是UnDo后 再进行Command 没有清除之前的Comand
The text was updated successfully, but these errors were encountered: