摘要:
找到"树根"(非虚类和接口)是有效关闭一个GameObject下N层N多个子GameObject的方法.代码示例: void UISwitch(bool isHide) { SpriteRoot[] spriteRoot = gameObject.GetComponentsInChildren<SpriteRoot>(); foreach (SpriteRoot root in spriteRoot) { root.Hide(isHide); } SpriteText[] texts = game... 阅读全文