Exemplo n.º 1
0
    public void Update()
    {
        if (rotateCamera)
        {
            Camera.main.transform.RotateAround(Vector3.zero, Vector3.up, Time.deltaTime * 10);
        }

        if (Input.GetKeyDown(KeyCode.H))//halt
        {
            if (coroutine != null)
            {
                StopCoroutine(coroutine);
            }
            RCP.resetCubePrefabPositions();
            RCP.RefreshPanels();
        }

        else if (Input.GetKeyDown(KeyCode.S))
        {
            Solve();
        }
        else if (Input.GetKeyDown(KeyCode.E))
        {
            EasyScrambleCube();
        }
        else if (Input.GetKeyDown(KeyCode.D))
        {
            ScrambleCube();
        }
    }
Exemplo n.º 2
0
    public void Update()
    {
        if (rotateCamera)
        {
            Camera.main.transform.RotateAround(Vector3.zero, Vector3.up, Time.deltaTime * 10);
        }

        if (Input.GetKeyDown(KeyCode.H))//halt
        {
            if (coroutine != null)
            {
                StopCoroutine(coroutine);
            }
            RCP.resetCubePrefabPositions();
            RCP.RefreshPanels();
        }
        else if (Input.GetKeyDown(KeyCode.D))
        {
            SearchedAndTrimmedSolve();
        }
        else if (Input.GetKeyDown(KeyCode.S))
        {
            Solve();
        }
        else if (Input.GetKeyDown(KeyCode.R))
        {
            ScrambleCube();
        }
        else if (Input.GetKeyDown(KeyCode.F1))
        {
            runCheckerboard();
        }
        else if (Input.GetKeyDown(KeyCode.F2))
        {
            runSixDot();
        }
    }