2013-10-08 NGUIToolsの便利メソッド GameObjectを渡して、親をさかのぼってComponentを探せる UIRoot mRoot = NGUITools.FindInParents<UIRoot> (gameObject);