mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-22 15:24:18 +00:00
26 lines
458 B
C#
26 lines
458 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
namespace BetterTee.Player {
|
|||
|
|
|||
|
public class PaletteButton : MonoBehaviour
|
|||
|
{
|
|||
|
public PencilTool pencil;
|
|||
|
|
|||
|
protected Image image;
|
|||
|
|
|||
|
protected void Start()
|
|||
|
{
|
|||
|
image = GetComponent<Image>();
|
|||
|
}
|
|||
|
|
|||
|
public void OnClick()
|
|||
|
{
|
|||
|
pencil.selectedColor = image.color;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|