20 lines
347 B
C#
20 lines
347 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class changeSpeeedButton : MonoBehaviour
|
|
{
|
|
|
|
Animator anime;
|
|
|
|
public float speed;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
anime = GetComponent<Animator>();
|
|
anime.SetFloat("speed", speed);
|
|
}
|
|
|
|
}
|