Example #1
0
    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;
    }
Example #2
0
 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);
 }
Example #4
0
 public static void postfix()
 {
     Blocker.Unblock(ThingGridPatch.mutex);
 }