using UnityEngine;
using System.Collections;
public class moveAnimation : MonoBehaviour {
public float BaseAnimatedSpeed = 0.5f;
public float AnimationSpeedModifier = 0.25f;
//error occurs in this line in CharacterMoter
public CharacterMotor motor;
Animation animations;
void Start () {
animations = GetComponent<Animation>();
}
void Update () {
animations[animations.clip.name].speed = motor.movement.velocity.magnitude * AnimationSpeedModifier + BaseAnimatedSpeed;
}
}