1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-29 01:44:19 +00:00
better-tee/Assets/Old/Code/Player/RadiusSlider.cs

23 lines
390 B
C#
Raw Normal View History

2019-09-19 10:28:02 +00:00
using UnityEngine;
using UnityEngine.UI;
namespace BetterTee.Player {
public class RadiusSlider : MonoBehaviour
{
public PencilTool pencil;
protected Slider slider;
protected void Start() {
slider = GetComponent<Slider>();
}
public void OnValueChange()
{
pencil.size = slider.value;
}
}
}