标签:
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指定好点击事件
标签:
原文地址:http://www.cnblogs.com/ZeroMurder/p/5641258.html