Esempio n. 1
0
    public void MainMenu()
    {
        Step0.SetActive(false);
        Step1.SetActive(false);
        Step2.SetActive(false);
        Step3.SetActive(false);
        Step4.SetActive(false);
        Step5.SetActive(false);

        StartButton.SetActive(true);
        Hide1.SetActive(false);
        Next1.SetActive(false);
        Previous1.SetActive(false);
    }
Esempio n. 2
0
 public void StepFive()
 {
     Debug.Log("StepFiveInit");
     Step0.SetActive(false);
     Step1.SetActive(false);
     Step2.SetActive(false);
     Step3.SetActive(false);
     Step4.SetActive(false);
     Step5.SetActive(true);
     StartButton.SetActive(false);
     Hide1.SetActive(true);
     Next1.SetActive(true);
     Previous1.SetActive(true);
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     Time.fixedDeltaTime = 0.5f;
     Step1.SetActive(false);
     Step2.SetActive(false);
     Step3.SetActive(false);
     Step4.SetActive(false);
     Step5.SetActive(false);
     Step6.SetActive(false);
     Step7.SetActive(false);
     Step8.SetActive(false);
     Step9.SetActive(false);
     currenttime = Time.time;
     printcount  = 0;
     loop        = -1;
 }
Esempio n. 4
0
    public void StepOne()
    {
        Marker1.SetActive(true);
        Marker2.SetActive(true);
        Debug.Log("StepOneInit");
        FindObjectOfType <DistanceCalculator>();
        Step0.SetActive(false);
        Step1.SetActive(true);
        Step2.SetActive(false);
        Step3.SetActive(false);
        Step4.SetActive(false);
        Step5.SetActive(false);

        StartButton.SetActive(false);
        Hide1.SetActive(true);
        Next1.SetActive(true);
        Previous1.SetActive(false);
    }
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         if (step == 1)
         {
             Step1.SetActive(false);
             Step2.SetActive(true);
         }
         if (step == 2)
         {
             Step2.SetActive(false);
             Step3.SetActive(true);
         }
         if (step == 3)
         {
             SceneManager.LoadScene(1);
         }
         step += 1;
     }
 }
Esempio n. 6
0
 void FixedUpdate()
 {
     if (loop >= 0 && loop < 1)
     {
         if (printcount % 11 == 0)
         {
             Step1.SetActive(true);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 1)
         {
             Step1.SetActive(false);
             Step2.SetActive(true);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 2)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(true);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 3)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(true);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 4)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(true);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 5)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(true);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 6)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(true);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 7)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(true);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 8)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(true);
             loop++;
         }
         printcount++;
     }
     if (loop == 1)
     {
         SceneManager.LoadScene("Game3", LoadSceneMode.Single);
     }
 }