Files
old-game/Assets/Low Poly Animated People/- Scripts/AnimSpeed.cs
2020-01-11 07:32:13 +01:00

27 lines
501 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PolyPerfect
{
public class AnimSpeed : MonoBehaviour
{
Animator anim;
float Speed;
// Use this for initialization
void Start()
{
Speed = Random.Range(0.85f, 1.25f);
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
anim.speed = Speed;
}
}
}