コード例 #1
0
    public void Undo()
    {
        Command cmd = commandPool.GetNextUndoCommand();

        Debug.Log("撤销:" + cmd.ToString());

        commandPool.Undo();
        m_allCommands.Remove(cmd);
        Debug.Log(commandPool.ToString());
        selectIndex -= 1;
    }