void Start() { mAnimatorParameters = new List <string>(); Animator.AddAnimatorParameterIfExists("IsRed", AnimatorControllerParameterType.Bool, mAnimatorParameters); Animator.AddAnimatorParameterIfExists("IsBlack", AnimatorControllerParameterType.Bool, mAnimatorParameters); }