using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PencilSizeFromSlider : MonoBehaviour { public PencilTool pencil; protected Slider slider; protected void Start() { slider = GetComponent(); } public void OnValueChange() { pencil.size = slider.value; } }