예제 #1
0
 public int GetIndex(showPictureData trans) { return GetChildList().IndexOf(trans); }
예제 #2
0
 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();
             }
         }
     }
 }