using UnityEngine;
using System.Collections;
public class HideOrShowImg : MonoBehaviour {
public GameObject Img;
void Start()
{
Img.SetActive(false);
}
public void HideOrShow()
{
Img.SetActive(!Img.activeSelf);
}
}
给button指定好点击事件
时间: 2024-10-14 22:07:08