public HumanAssistedRacingSimulationScreen( IApplicationService appService) { // Create our human driven car humanCar = new CarHuman(true, 100); RacingSimulationScreen = appService.Kernel.Get <RacingSimulationScreen>( new ConstructorArgument("carControllers", new List <ICarController> { humanCar })); HumanAssistedHud = appService.Kernel.Get <HumanAssistedTrainingHudScreen>( new ConstructorArgument("racingSimulationScreen", RacingSimulationScreen)); AddScreen(RacingSimulationScreen); AddScreen(HumanAssistedHud); }
public override void InitializeScreen() { base.InitializeScreen(); humanCar = racingSimulationScreen.GetCarControllers().First() as CarHuman; }