public int GetIndex(showPictureData trans) { return GetChildList().IndexOf(trans); }
void InitMember() { Debug.Log("HUIShowPicture InitMember....."); _pictures.Clear(); showPictureData pic = new showPictureData(); for (int i = 0; i < transform.childCount; ++i) { Transform t = transform.GetChild(i); if (!hideInactive || (t && NGUITools.GetActive(t.gameObject))) { if (pic.init(t)) { pic.SetFilled(mFillDirection, invert); _pictures.Add(pic); pic = new showPictureData(); } } } }