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