Beispiel #1
0
 public void slide()
 {
     s1 = 1;
     v1 = 0;
     e1 = 0;
     StopVideo();
     firstSlide.SetActive(false);
     foreach (GameObject e in ExpData)
     {
         e.SetActive(false);
     }
     SlideBtn.GetComponent <RectTransform>().localScale = new Vector3(0.8f, 0.8f, 0.8f);
     VideoBtn.GetComponent <RectTransform>().localScale = new Vector3(1f, 1f, 1f);
     ExpBtn.GetComponent <RectTransform>().localScale   = new Vector3(1f, 1f, 1f);
     nextBtn.SetActive(true);
     counter = -1;
     next();
 }
Beispiel #2
0
 public void Experiment()
 {
     s1 = 0;
     v1 = 0;
     e1 = 1;
     firstSlide.SetActive(false);
     SlideBtn.GetComponent <RectTransform>().localScale = new Vector3(1f, 1f, 1f);
     VideoBtn.GetComponent <RectTransform>().localScale = new Vector3(1f, 1f, 1f);
     ExpBtn.GetComponent <RectTransform>().localScale   = new Vector3(0.8f, 0.8f, 0.8f);
     StopVideo();
     foreach (GameObject s in slides)
     {
         s.SetActive(false);
     }
     nextBtn.SetActive(true);
     counter = -1;
     next();
 }