public Class A:MonoBehavior
{
B b = GetComponent<B>();
b.enabled = false;
b.UpdateCuror();
}
public Class B:MonoBehavior
{
public void UpdateCursor()
{
Debug.Log("if gameobject is disable, func will still be called outside");
}
}
public Class A:MonoBehavior
{
B b = GetComponent<B>();
b.enabled = false;
b.UpdateCuror();
}
public Class B:MonoBehavior
{
public void UpdateCursor()
{
Debug.Log("if gameobject is disable, func will still be called outside");
}
}
本文标题:Some Special
本文链接:https://www.haomeiwen.com/subject/yjsofxtx.html
网友评论