public void Trigger() { Triggered = true; if (GetsUnblocked) { TheBlocker.Unblock(); } if (TheTalkable != null) { TheTalkable.TriggerDialogue(DialogueIndex); } if (Collider != null) { Collider.enabled = true; WaterTap tap = GetComponent <WaterTap>(); tap.EnableUsable(); } if (DisappearsOnTrigger) { this.gameObject.SetActive(false); } if (Spawns != null) { Spawns.SetActive(true); } this.enabled = false; }
void Update() { if (Requirement.WasDialogueIndexRead(DialogueIndex)) { if (GetsUnblocked && TheBlocker != null) { TheBlocker.Unblock(); } if (GetsDisabled) { TargetGameObject.SetActive(false); } if (TheTalkable != null) { TheTalkable.SetDialogueIndex(DialogueIndex); } this.enabled = false; } }
public static void postfix(SustainerManager __instance) { Blocker.Unblock(SustainerManagerPatch.listMutex); }
public static void postfix() { Blocker.Unblock(ThingGridPatch.mutex); }