Can I Get Help With Making This To Ui Instead Of Inspector

hey guys how would i apply these varabls to the Ui and not the inspector… or both doesnt really matter… although i want to have the player be able to change to flash light settings through the Ui using realtime…

Copyright of Brayden roberts aka BrayT;

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

public class FlashLightUi : MonoBehaviour
{
    public LightType LightType;
    public Light FlashLight;
    public float LightDistance = 3;
    public float lightIntensity = 1;
    public Texture FlashLightTexture;
    public Color FlashLightColors;
    public LightRenderMode FlashLightRenderMode;
    // Ui Buttons
    public Slider LightDistanceUI;
    public Slider lightIntensityUI;
    // i need to add a change color script

    // Start is called before the first frame update
    void Start()
    {
        FlashLight = GetComponent<Light>();
        FlashLight.GetComponent<Light>().enabled = false;

        //light quality setting... this is the settings on start
        FlashLight.GetComponent<Light>().range = LightDistance;
        FlashLight.GetComponent<Light>().intensity = lightIntensity;
        FlashLight.GetComponent<Light>().cookie = FlashLightTexture;
        FlashLight.GetComponent<Light>().color = FlashLightColors;
        FlashLight.GetComponent<Light>().renderMode = FlashLightRenderMode;
        FlashLight.GetComponent<Light>().type = LightType;
        // Ui Buttons
    }

    // Update is called once per frame
    void Update()
    {
       
    }
}

You’ll want to start here: Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn