1234567891011121314151617181920212223242526272829 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- namespace CurvedUI
- {
- public class CUI_PickImageFromSet : MonoBehaviour
- {
- static CUI_PickImageFromSet picked = null;
- public void PickThis()
- {
- if (picked != null)
- picked.GetComponent<Button>().targetGraphic.color = Color.white;
- Debug.Log("Clicked this!", this.gameObject);
- picked = this;
- picked.GetComponent<Button>().targetGraphic.color = Color.red;
- }
- }
- }
|