holopy3/Assets/Scripts/SlowerAnimation.cs

19 lines
325 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class SlowerAnimation : MonoBehaviour
{
public float animSpeed;
private Animation anim;
void Start()
{
anim = GetComponent<Animation>();
anim["Take 001"].speed = animSpeed;
}
}