private static void SetVehicleSpec(AtsVehicleSpec vehicleSpec) { AtsDebug.LogInfo($"Called: {nameof(SetVehicleSpec)}()"); AtsSimulationEnvironment.Instance.OnVehicleSpecPresented(vehicleSpec); }
private static void SetVehicleSpec(AtsVehicleSpec vehicleSpec) { AtsDebug.LogInfo(string.Format("Called: {0}()", nameof(SetVehicleSpec))); AtsSimulationEnvironment.Instance.OnVehicleSpecPresented(vehicleSpec); }
internal void OnVehicleSpecPresented(AtsVehicleSpec vehicleSpec) { ControlHandle = new AtsControlHandle(vehicleSpec); foreach (IAtsBehaviour behaviour in Behaviours) { behaviour.OnActivate(); } }