关于GameObject 的对象用!的小发现
private void isObject(GameObject obj)
{
if (obj)
{
Debug.Log("有对象");
}
if(!obj)
{
Debug.Log("为空");
}
}
private void isObject(GameObject obj)
{
if (obj)
{
Debug.Log("有对象");
}
if(!obj)
{
Debug.Log("为空");
}
}