private void DrawLog() { var log = imgr.GetInputLog(); var text = buttonlist; text.text = ""; foreach (var e in log) { text.text += e.Key.ToString() + ":" + e.Value + "\n"; } var cmdtext = cmdlist; foreach (var cmd in cmds) { var verify = new CommandVerify(imgr.GetPressedTimeLog().First, 30); cmd.Value.Accept(verify); if (verify.commandAcceptFlag) { cmdtext.text = (cmd.Key + "\n") + cmdtext.text; break; } } var newinput = ""; foreach (var button in loglist) { var verify = new CommandVerify(imgr.GetPressedTimeLog().First, 1); button.cmd.Accept(verify); if (verify.commandAcceptFlag) { newinput += button.drawtext; } } if (newinput != "") { inputlog.text = newinput + "\n" + inputlog.text; } }