mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-25 08:34:17 +00:00
22 lines
390 B
C#
22 lines
390 B
C#
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;
|
|
}
|
|
}
|
|
|
|
}
|