Esempio n. 1
0
 public void scrollBarChange()
 {
     if (popTextScrollView.panel.GetViewSize().y > popText.localSize.y)
     {
         //textBox.transform.Find("outline").GetComponent<BoxCollider>().enabled = false;
         popTextScollrBar.value = 0;
     }
     else
     {
         //textBox.transform.Find("outline").GetComponent<BoxCollider>().enabled = true;
     }
     if (popTextScollrBar.alpha == 1)
     {
         //topBtn.alpha = 1;
         //topBtn.GetComponent<BoxCollider>().enabled = true;
         popTextScollrBar.alpha = 1;
         popTextScollrBar.GetComponent <BoxCollider>().enabled = true;
     }
     else
     {
         //topBtn.alpha = 0;
         //topBtn.GetComponent<BoxCollider>().enabled = false;
         popTextScollrBar.alpha = 0;
         popTextScollrBar.GetComponent <BoxCollider>().enabled = false;
     }
 }
Esempio n. 2
0
 public void left()
 {
     bar.GetComponent <UIScrollBar> ().value -= 0.001f;
 }