Link an Animator parameter to a Variable

NOTE: This script is included in AC v1.74.0 and later.

This script allows you to sync up an Animator parameter's value with an AC component variable. To use it:

AnimatorParameterLink.cs:
 * 1) Attach a Variables component to the Animator, and define a Bool, Integer, or Float parameter that matches the name of the Animator parameter you want to sync with.
 * 2) Set its Link to field to Custom Script
 * 3) Place the script below into a C# file named AnimatorParameterLink.cs
 * 4) Add the component Animator Parameter Variable Link to your Animator component
 * 5) In the component's Inspector, enter the name of the variable/parameter into the "Shared Variable Name" field.  If the parameter is only intended to be read - and not set via the variable's value - check "Download Only".