标签:
script:
public GameObject thePanel;
public open()
{
thePannel.SetActive(true);
}
public open()
{
thePannel.SetActive(false);
}
and add the up script to an Empty Object
add open/close button on the scene.
define open/close button onClick() function to call script‘s open/close function.
标签:
原文地址:http://www.cnblogs.com/wiessharling/p/5401349.html