Commit 4e446437 authored by Bošániová Monika's avatar Bošániová Monika
Browse files

Bug fixed

parent 58e5d89b
...@@ -83,16 +83,20 @@ public class SolveTwoFace : MonoBehaviour ...@@ -83,16 +83,20 @@ public class SolveTwoFace : MonoBehaviour
////Automate the list ////Automate the list
//Automate.shuffleDone = false; //Automate.shuffleDone = false;
//Automate.setAutomateList(new List<string> { "F" } ); //Automate.setAutomateList(new List<string> { "F" } );
Automate.setAutomateList(solutionList);
Automate.actualPosition = 0;
Automate.AutomatePlaying = true;
if(info == "Error") if(solutionList.Count > 0 && solutionList[0] == "Error")
{ {
errorMsgBox.text = "Cube is not solvable!"; errorMsgBox.text = "Cube is not solvable!";
} }
else
{
Automate.setAutomateList(solutionList);
Automate.actualPosition = 0;
Automate.AutomatePlaying = true;
}
print("solution:" + solution); print("solution:" + solution);
print(info);
} }
else else
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment