Esempio n. 1
0
        protected override void OnReachingEndOfTrack()
        {
            base.OnReachingEndOfTrack();
            var malfunctionTypes = new[]
            {
                PlayerActionType.Alpha,
                PlayerActionType.Bravo,
                PlayerActionType.Charlie
            };

            if (ActionType != null && malfunctionTypes.Contains(ActionType.Value))
            {
                SittingDuck.AddIrreparableMalfunctionToStations(
                    CurrentStations,
                    new IrreparableMalfunction {
                    ActionType = ActionType.Value
                });
            }
        }