Exemple #1
0
 public override void CreateEngineAndWheels(EnergySource.eEnergyType i_EnergySource)
 {
     AllocateEngine(i_EnergySource);
     InitializeWheels(k_MaxAirPressure);
     if (Engine is Electric)
     {
         Engine.UpdateMaxEnergyAmount(k_MaxBatteryTime);
     }
     else
     {
         Engine.UpdateMaxEnergyAmount(k_MaxFuelAmount);
         ((Fuel)Engine).FuelType = Fuel.eFuelType.Octan98;
     }
 }