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