// 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(); } } }
// 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); } }
// 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); } } }
// 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); } } }