private System.Collections.IEnumerator SetFloatCoroutine(eCharacterAnimationParameter parameter, float value, float dampTime) { while (_animator != null && Mathf.Abs(_animator.GetFloat(_parameterValues[(int)parameter].HashValue) - value) > float.Epsilon) { _animator.SetFloat(_parameterValues[(int)parameter].HashValue, value, dampTime, Time.deltaTime); yield return(null); } yield break; }
public bool GetBool(eCharacterAnimationParameter parameter) { return(_animator.GetBool(_parameterValues[(int)parameter].HashValue)); }
public int GetInteger(eCharacterAnimationParameter parameter) { return(_animator.GetInteger(_parameterValues[(int)parameter].HashValue)); }
public float GetFloat(eCharacterAnimationParameter parameter) { return(_animator.GetFloat(_parameterValues[(int)parameter].HashValue)); }
public void SetBool(eCharacterAnimationParameter parameter, bool value) { _animator.SetBool(_parameterValues[(int)parameter].HashValue, value); }
public void SetInteger(eCharacterAnimationParameter parameter, int value) { _animator.SetInteger(_parameterValues[(int)parameter].HashValue, value); }
public void SetFloat(eCharacterAnimationParameter parameter, float value, float dampTime) { StartCoroutine(SetFloatCoroutine(parameter, value, dampTime)); }
public void SetFloat(eCharacterAnimationParameter parameter, float value) { _animator.SetFloat(_parameterValues[(int)parameter].HashValue, value); }