コード例 #1
0
ファイル: Show_PicL3.cs プロジェクト: s885219s/Mikro
 // 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;
 }
コード例 #2
0
ファイル: Show_PicL3.cs プロジェクト: s885219s/Mikro
 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);
     }
 }