public void AddCommand(PtCommand command) { if(!m_CommandManager.ExistsCommand(command.GetInternalName())) { m_CommandManager.AddCommand(command); } m_Commands.Add(command.GetInternalName()); }
public void AddCommand(PtCommand command) { // We don't want to add two commands with the same internal name. bool bExist = m_Commands[command.GetInternalName()] != null; Debug.Assert(!bExist , "There already exist the command with the same internal name [" + command.GetInternalName() + "]"); if (!bExist) m_Commands.Add(command.GetInternalName(), command); }