Beispiel #1
0
 private void setupRacingControls()
 {
     if (racingControls != null) return;
     //Controller related variables
     if ((racerType == RacerType.LocalHuman) & !AiInputManager.testAI)
         racingControls = new RacingControls(this);//sets input to game pad 1 use (this,game,input) to set input
     else if ((racerType == RacerType.AI) || AiInputManager.testAI)
         racingControls = new RacingControls(this, new AiInputManager(this));
     else
         racingControls = new RacingControls(this, new NullInputManager());
 }
Beispiel #2
0
 public void setupRacingControls(IInputManager inputM)
 {
     // AI control tests
     if (AiInputManager.testAI)
     {
         racingControls = new RacingControls(this, new AiInputManager(this));
     }
     else
     {
         racingControls = new RacingControls(this, inputM);
     }
     //racingControls = new RacingControls(this, new AiInputManager(this));
 }