Example #1
0
 private void TriggerKeyLink(UFLevelStructure.Keyframe key)
 {
     if (key.triggerID > 0)
     {
         UFTrigger.Activate(key.triggerID);
     }
 }
Example #2
0
    private void Trigger(bool positive, IDRef.Type ignoredType = IDRef.Type.None)
    {
        if (ignoredType == IDRef.Type.All)
        {
            return;
        }

        foreach (int link in links)
        {
            if (UFLevel.GetByID(link).type != ignoredType)
            {
                UFTrigger.Activate(link, positive);
            }
        }
    }