Cloned from the Team project repo
This commit is contained in:
15
Assets/Assets_And_Scenes/Scripts/Other Scripts/Spedometer.cs
Normal file
15
Assets/Assets_And_Scenes/Scripts/Other Scripts/Spedometer.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class Spedometer : MonoBehaviour
|
||||
{
|
||||
public Slider speed;
|
||||
// Start is called before the first frame update
|
||||
public void SpeedSlider(float newSpeed)
|
||||
{
|
||||
speed.value = newSpeed;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user