예제 #1
0
파일: Robot.cs 프로젝트: lutrampal/ProjetVR
 /// <summary>
 /// Applies the upgrades this Robot has earned
 /// </summary>
 public void AddCommandUpgrade(Command upCommand)
 {
     foreach (Command command in Commands)
     {
         if (command.Name.Equals(upCommand.Name))
         {
             Commands.Remove(command);
         }
     }
     AddCommand(upCommand);
 }
예제 #2
0
파일: Robot.cs 프로젝트: lutrampal/ProjetVR
 public void AddCommand(Command command)
 {
     Commands.Add(command);
 }