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