Пример #1
0
        /// <summary>
        /// Stop objective
        /// </summary>
        public virtual void Stop()
        {
            IsActivated       = false;
            IsAccomplished    = false;
            IsSubAccomplished = false;

            StopDrawing();

            OnMissionObjectiveStop?.Invoke();
        }
Пример #2
0
        public static void StopCurrentObjective(string reason)
        {
            // temp index.
            var index = CurrentMissionObjectiveIndex;

            CurrentMissionObjective.Stop();
            CurrentMissionObjective.OnMissionObjectiveAccomplish -= StartNextObjective;
            CurrentMissionObjectiveIndex = -1;

            OnMissionObjectiveStop?.Invoke(
                CurrentMissionObjective, index, index == 0, index >= MissionInfo.MissionObjectivesInfo.Count, reason);
        }