Example #1
0
 public void GoAnotherCamera()
 {
     if (flag == false)
     {
         camera1.SetActive(false);
         camera2.SetActive(true);
         flag = true;
         Debug.Log("Переключение на камеру 2");
         btLeftRotate.SetActive(false);
         btRightRotate.SetActive(false);
         Panel1.SetActive(false);
         Panel2.SetActive(false);
     }
     else
     {
         camera2.SetActive(false);
         camera1.SetActive(true);
         flag = false;
         Debug.Log("Переключение на камеру 1");
         btLeftRotate.SetActive(true);
         btRightRotate.SetActive(true);
         Panel1.SetActive(true);
         Panel2.SetActive(true);
     }
 }
Example #2
0
 /// <summary>
 /// Sets interface screens according to given input
 /// </summary>
 /// <param name="step"></param>
 public void SetInterface(int step)
 {
     if (step == 0)
     {
         Intro.SetActive(true);
         Intro.SetActive(true);
         CloseBtn.SetActive(false);
         Panel1.SetActive(false);
         Panel2.SetActive(false);
         Panel3.SetActive(false);
         PanelOver.SetActive(false);
     }
     else if (step == 1)
     {
         Intro.SetActive(false);
         CloseBtn.SetActive(true);
         Panel1.SetActive(true);
         Settings1.SetActive(false);
         Panel2.SetActive(false);
         Panel3.SetActive(false);
         PanelOver.SetActive(false);
     }
     else if (step == 2)
     {
         Intro.SetActive(false);
         CloseBtn.SetActive(true);
         Panel1.SetActive(false);
         Panel2.SetActive(true);
         Settings2.SetActive(false);
         Panel3.SetActive(false);
         PanelOver.SetActive(false);
     }
     else if (step == 3)
     {
         Intro.SetActive(false);
         CloseBtn.SetActive(true);
         Panel1.SetActive(false);
         Panel2.SetActive(false);
         Panel3.SetActive(true);
         PanelOver.SetActive(false);
     }
     else if (step == 4)
     {
         Intro.SetActive(false);
         CloseBtn.SetActive(true);
         Panel1.SetActive(false);
         Panel2.SetActive(false);
         Panel3.SetActive(false);
         PanelOver.SetActive(true);
     }
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     FadeImage.enabled = false;
     Mainpanel.SetActive(true);
     Panel1.SetActive(false);
     Panel2.SetActive(false);
     Panel3.SetActive(false);
     Panel4.SetActive(false);
     Panel5.SetActive(false);
     Gamepanel.SetActive(false);
     Resultpanel.SetActive(false);
     prevpanel   = Mainpanel;
     PanelNumber = 0;
     gamemode    = false;
     Timer       = false;
 }