示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (isAuto)
     {
         if (stepsLeft > 0)
         {
             string code = current_moves[current_moves.Count - stepsLeft];
             if (cubemover.isAvailable())
             {
                 stepsLeft -= 1;
                 cubemover.move(code);
             }
         }
         else
         {
             Solve();
         }
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (mode == 0 && cubemover.isAvailable() && controlShuffle.stepsLeft <= 0 && cubeFormulas.stepsLeft <= 0)
     {
         rubiksArrows.gameObject.SetActive(true);
     }
     else
     {
         rubiksArrows.gameObject.SetActive(false);
     }
 }
示例#3
0
 // Update is called once per frame
 void Update()
 {
     if (stepsLeft > 0)
     {
         if (cubemover.isAvailable())
         {
             stepsLeft -= 1;
             string code = movingCodes[rnd.Next(movingCodes.Count)];
             cubemover.move(code);
         }
     }
 }
示例#4
0
 // Update is called once per frame
 void Update()
 {
     if (stepsLeft > 0)
     {
         if (cubemover.isAvailable())
         {
             string code = current_formula[current_formula.Length - stepsLeft];
             stepsLeft -= 1;
             if (stepsLeft == 0)
             {
                 current_formula = null;
             }
             cubemover.move(code);
         }
     }
 }