Exemplo n.º 1
0
        public void EndObjective(bool loading = false)
        {
            state = ObjectiveState.Completed;
            onCompleted?.Invoke();
            onComplete?.Invoke(objectiveChoice);

            // Debug.Log("Finished objective: " + objectiveName);
            if (!loading)
            {
                Feedback.I.SendLineQueue("Finished objective: " + objectiveName,
                                         true);
                progression.FinishObjective(this);
                RemoveObjectiveTracker();
                progression.RegisterCompletedState(objectiveId);
            }
            progression.onRegisterInteractable -= OnInteractableRegistered;
        }