public void FlagCheck() { if (Quest_Fail_Flag && ZF.CheckFlag(Quest_Fail_Flag.name)) //Entire quest failed { questsHolder.FullQuestCompleted(gameObject, true); } }
// Update is called once per frame void FixedUpdate() { if (Fight1_flag && ZF.CheckFlag(Fight1_flag.name)) { Fight1_flag = null; ArenaRival.GetComponentInChildren <DiaRoot>().ModifyStarting(Rival_dia_post_fight1); ArenaRival.GetComponent <HumanoidMaster>().Set_ControlMode(NPC_Control_Mode.WalktoPlayer_dia); } }
private void OnTriggerEnter(Collider collision) { if (Enter_true && collision.tag == "Player") { for (int i = 0; i < Required_Flags.Count; ++i) { if (ZF.CheckFlag(Required_Flags[i].name) != Required_Flags_Polarity[i]) { return; } } if (DisableAfterUse) { this_collider.enabled = false; } UIControl.DialogueMenuBool(DiaRoot); } }