Beispiel #1
0
    void onTrigger(bool triggered, InteractionTrigger trigger)
    {
        if (IsLocked)
        {
            return;
        }

        if (Animator && !string.IsNullOrWhiteSpace(OnTriggerAnimation))
        {
            if (InteractionTrigger.AnyFalse(InteractTriggers))
            {
                Animator.SetBool(OnTriggerAnimation, false);
            }
            else
            {
                Animator.SetBool(OnTriggerAnimation, true);
            }
        }
    }