private void RegisterRaceStarterCar(StarterConfigInputs config, int trackIndex) { RaceStarterModel racer = RacingCarsFactory.MakeRaceStarter(config); DataCenter.RegisterRaceStarters(racer); RacingCarsFactory.InstantiateCarObject(racer, trackIndex); UserCarSettings userSettings = RacingCarsFactory.MakeUserSettings(config, racer.RaceStarterId); Repository.SaveCarStartersConfigs(userSettings); }
private void Init() { _createdCarsIncrement = 0; _racingCarsFactory = GetComponent <RacingCarsFactory>(); }