public void OnLevelChange() { int currentLevelNumber = LevelChooserDropdown.GetComponent <Dropdown>().value + 1; LevelConfig currentLevel = GameManager.Instance.GameConfig.Levels.Find(x => x.levelNumber == currentLevelNumber); ShapeText.GetComponent <Text>().text = ShapeElement.GetShapeName(currentLevel.shape); LineStrokeText.GetComponent <Text>().text = LineStroke.FloatToStroke(currentLevel.lineStroke); LineColorText.GetComponent <Text>().text = currentLevel.brushColor.Name; ShapeColorText.GetComponent <Text>().text = currentLevel.shapeColor.Name; LevelResultText.GetComponent <Text>().text = GameManager.Instance.ResultsList.Find(x => x.levelNumber == currentLevelNumber).result.shapeCovering + " %"; LevelResultIncorrectText.GetComponent <Text>().text = GameManager.Instance.ResultsList.Find(x => x.levelNumber == currentLevelNumber).result.errorRange + " %"; DrawTimeoutText.GetComponent <Text>().text = GameManager.Instance.GameConfig.WaitingTime.ToString() + " s"; ResultText.GetComponent <Text>().text = this.finalResult.shapeCovering + " %"; ResultIncorrectText.GetComponent <Text>().text = this.finalResult.errorRange + " %"; if (GameManager.Instance.GameConfig.DrawStartPoint) { StartPointImg.GetComponent <Image>().sprite = checkYes; } else { StartPointImg.GetComponent <Image>().sprite = checkNo; } }