1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-25 16:34:17 +00:00
better-tee/Assets/Drawing/Scripts/PaletteButton.cs
2019-09-11 15:13:31 +02:00

21 lines
373 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PaletteButton : MonoBehaviour
{
public PencilTool pencil;
protected Image image;
protected void Start()
{
image = GetComponent<Image>();
}
public void OnClick()
{
pencil.selectedColor = image.color;
}
}