Ejemplo n.º 1
0
 private void onReflesh()
 {
     stopMoveTask();
     if (list.isScollble())
     {
         gameObject.SetActive(true);
         syncSliderValue();
     }
     else
     {
         gameObject.SetActive(false);
     }
 }
Ejemplo n.º 2
0
        void Update()
        {
            float             totalH = list.getTotalHeight() - list.getContainerHeight();
            List <ItemBundle> ibs    = list.listVisble();
            float             firstY = ibs[0].getRealY();

            text.text  = "Scrollble=" + list.isScollble() + " ended=" + list.isEnded() + " firstY=" + firstY;
            text.text += " totalH=" + totalH;
            string ss = "";

            foreach (ItemBundle ib in ibs)
            {
                ss += ib.position + " , ";
            }
            text.text += "\n" + ss;
        }