using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class GameSpeedAdapter : MonoBehaviour
{
    
    void SetSpeed(float value)
    {
        Time.timeScale = value;
    }
    // Start is called before the first frame update
    void Start()
    {
        GetComponent<Slider>().onValueChanged.AddListener(SetSpeed);
    }
}
