mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-23 07:44:19 +00:00
21 lines
377 B
C#
21 lines
377 B
C#
|
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<Slider>();
|
|||
|
}
|
|||
|
|
|||
|
public void OnValueChange()
|
|||
|
{
|
|||
|
pencil.size = slider.value;
|
|||
|
}
|
|||
|
}
|