public void ObjectiveFinished() { CompletedObjectiveList.Add(ActiveObjective); ///// EventData tempEvent = new EventData(); tempEvent.Setup(EventTypeEnum.QuestObjCompleted, GetComponentInParent <QuestTemplate>().QuestName); eventQueue.AddEvent(tempEvent); ///// if (HiddenObjectiveList.Count > 0) { ActiveObjective = HiddenObjectiveList[0]; HiddenObjectiveList.RemoveAt(0); ActiveObjective.GetComponent <QuestObjective>().initialize(); ///////// QHud.QuestDisplay(this); //////// } else { ActiveObjective = null; questsHolder.FullQuestCompleted(gameObject); ZF.SetFlag(Quest_Set_Flag.name); //Has to be after } }
public override void Death() { animationUpdater.PlayAnimation("No Motion", false, true); //Stops attacks after death Hitbox.GetComponent <CapsuleCollider>().enabled = false; if (FlagRef_Death) { ZF.SetFlag(FlagRef_Death.name); } base.Death(); }