public void addCommand(ENUM_CommandType commandType, ICommand command) { if (m_commandManagers.ContainsKey(commandType)) { m_commandManagers[commandType].addCommand(command); } else { m_commandManagers[commandType] = new ProduceCommandManager(); m_commandManagers[commandType].addCommand(command); } }
public void removeCommand(ENUM_CommandType commandType, ICommand command) { m_commandManagers[commandType].removeCommand(command); }
//添加一条命令 public void addCommand(ENUM_CommandType commandType, ICommand command) { m_commandSystem.addCommand(commandType, command); }