Files
iFactory.Cutting.Unity/Assets/Plugins/Character Controller Pro/Demo/Scripts/AnimationSpeed.cs
CortexCore 13ffc9fd64 1
2024-06-03 10:11:43 +08:00

19 lines
373 B
C#

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;
}
}