ZoeRobotIngles/Assets/Scripts/Volume/SliderCol.cs

24 lines
396 B
C#
Raw Permalink Normal View History

2026-01-26 22:56:16 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SliderCol : MonoBehaviour
{
Slider slider;
public float add;
// Start is called before the first frame update
void Start()
{
slider = GetComponentInParent<Slider>();
}
private void OnMouseDown()
{
slider.value += add;
}
}