| 123456789101112131415161718 |
- using UnityEngine;
- using UnityEngine.UI;
- public class ButtonUI : MonoBehaviour
- {
- public Image[] image;
- public int nowImage;
- public void ChangeImg(int i)
- {
- image[nowImage].gameObject.SetActive(false);
- image[i].gameObject.SetActive(true);
- nowImage = i;
- }
- public void Test()
- {
- Debug.Log("Test");
- }
- }
|