Files
csumb-homework-train/Homework/Assets/AnimatedPart.cs
Gabriel Vidal-Ayrinhac 9b5c2ad828 initial commit
2021-02-05 00:44:09 +01:00

21 lines
428 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AnimatedPart : MonoBehaviour
{
Animator animator;
// Start is called before the first frame update
void Start()
{
animator = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
animator.SetFloat("Speed", GameManager.gm.speed);
}
}