1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-22 23:34:18 +00:00
better-tee/Assets/Code/PaletteButton.cs

22 lines
373 B
C#
Raw Normal View History

2019-09-10 15:01:29 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
2019-09-11 13:13:31 +00:00
public class PaletteButton : MonoBehaviour
2019-09-10 15:01:29 +00:00
{
public PencilTool pencil;
protected Image image;
protected void Start()
{
image = GetComponent<Image>();
}
public void OnClick()
{
2019-09-10 16:44:25 +00:00
pencil.selectedColor = image.color;
2019-09-10 15:01:29 +00:00
}
}