Files

19 lines
373 B
C#
Raw Permalink Normal View History

2023-10-04 16:50:27 +08:00
using UnityEngine;
namespace Lightbug.CharacterControllerPro.Demo
{
[RequireComponent(typeof(Animator))]
public class AnimationSpeed : MonoBehaviour
{
[Min(0f)]
public float speed = 1f;
Animator animator = null;
void Awake() => animator = GetComponent<Animator>();
void Start() => animator.speed = speed;
}
}