Exemple #1
0
    private void Update()
    {
        if (debugUI)
        {
            if (debugUI.activeSelf)
            {
                LevelController lc = LevelController.Instance;
                ErrorController ec = ErrorController.Instance;

                level.text      = "Level: " + lc.currentLevel.levelIndex;
                moves.text      = "Moves in this level: " + lc.numberOfMoves;
                totalMoves.text = "Total moves: " + ec.TotalNumberOfMoves;
                errorRateCorrectionEnabled.text    = "Error correction enabled: " + ec.isCorrectingErrorRate;
                movesUntilErrorRateCorrection.text = "Error correction starts at turn: " + ec.TurnCorrectionStarts;
                errors.text    = "Errors: " + ec.TotalNumberOfUnrecognizedMoves;
                errorRate.text = "Errorrate: " + Mathf.Round(ec.ErrorRate() * 100f) / 100f;
            }
        }
    }