Пример #1
0
        private static void SetVehicleSpec(AtsVehicleSpec vehicleSpec)
        {
            AtsDebug.LogInfo($"Called: {nameof(SetVehicleSpec)}()");


            AtsSimulationEnvironment.Instance.OnVehicleSpecPresented(vehicleSpec);
        }
Пример #2
0
        private static void SetVehicleSpec(AtsVehicleSpec vehicleSpec)
        {
            AtsDebug.LogInfo(string.Format("Called: {0}()", nameof(SetVehicleSpec)));


            AtsSimulationEnvironment.Instance.OnVehicleSpecPresented(vehicleSpec);
        }
Пример #3
0
        internal void OnVehicleSpecPresented(AtsVehicleSpec vehicleSpec)
        {
            ControlHandle = new AtsControlHandle(vehicleSpec);

            foreach (IAtsBehaviour behaviour in Behaviours)
            {
                behaviour.OnActivate();
            }
        }