void Update() { if (LateCounter == 2) { QH.AddQuest(Quest); QH.QuestSetFocus(Quest.gameObject); UIControl.DialogueMenuBool(Prom_Initial); LateCounter = -1; } if (LateCounter != -1) { LateCounter += 1; } if (!UIControl.GamePaused) { ControlHallLights(); if (questTemplate.CompareObj(QuestObjectives[1])) { if (!initalPallasTrigger.enabled) { PallasNearDoor.ModifyLarcenyReq(90); //lock in room } } if (questTemplate.CompareObj(QuestObjectives[2])) { if (QO2_first) { UIControl.DialogueMenuBool(Pallas_post_box); QO2_first = false; } GameObject w1 = inventory.ReturnWeapon(0); GameObject w2 = inventory.ReturnWeapon(1); if (w1 != null || w2 != null) { QH.CheckTaskCompletion(QuestObjectives[2], 0); } } if (questTemplate.CompareObj(QuestObjectives[3])) { if (QO3_first) { UIControl.DialogueMenuBool(Pallas_fighting); ZomSpawner.SetActive(true); QO3_first = false; } } if (questTemplate.CompareObj(QuestObjectives[4])) { if (QO4_first) { UIControl.DialogueMenuBool(Pallas_final); PallasFarDoor.ModifyLarcenyReq(0); EpimetheusDoor.ModifyLarcenyReq(0); QO4_first = false; } } if (!initalEpimetheusTrigger.enabled) { DC.ChangeDroneMode(true); } } }