22 lines
428 B
C#
22 lines
428 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
|
|
public class DropdownCtrl : MonoBehaviour
|
|
{
|
|
[SerializeField] Sprite on;
|
|
[SerializeField] Sprite off;
|
|
[SerializeField] Image image;
|
|
private void OnEnable()
|
|
{
|
|
image.sprite = on;
|
|
}
|
|
private void OnDestroy()
|
|
{
|
|
image.sprite = off;
|
|
}
|
|
}
|