private Element CreateElement(UnityEngine.AnimatorControllerParameter parameter)
{
switch (parameter.type)
{
case UnityEngine.AnimatorControllerParameterType.Float:
return new FloatElement(parameter, this);
case UnityEngine.AnimatorControllerParameterType.Int:
return new IntElement(parameter, this);
case UnityEngine.AnimatorControllerParameterType.Bool:
return new BoolElement(parameter, this);
case UnityEngine.AnimatorControllerParameterType.Trigger:
return new TriggerElement(parameter, this);
}
return null;
}