private void InitializeUI() { var opacityTween = uiController.GetComponent <dfTweenFloat>(); opacityTween.Play(); scoreLbl.Text = "0"; if (CurrentGameMode.ModeName == "TutorialMode") { targetPlayerLbl.Text = "Tutorial Mode"; targetScoreLbl.Text = "0"; } else { ShowSuperiorPlayer(); } string modeName = CurrentGameMode.ModeName; var labels = FindObjectsOfType <dfLabel>(); foreach (var label in labels) { if (label.Color.r == 14 && label.Color.g == 103 && label.Color.b == 163) { label.Color = GlobalData.Instance.SolidColors[modeName]; } } var buttons = FindObjectsOfType <dfButton>(); foreach (var button in buttons) { if (button.NormalBackgroundColor.r == 14 && button.NormalBackgroundColor.g == 103 && button.NormalBackgroundColor.b == 163) { button.NormalBackgroundColor = GlobalData.Instance.SolidColors[modeName]; button.HoverBackgroundColor = GlobalData.Instance.HighlightColors[modeName]; button.FocusBackgroundColor = GlobalData.Instance.SolidColors[modeName]; button.DisabledColor = GlobalData.Instance.SolidColors[modeName]; button.PressedBackgroundColor = GlobalData.Instance.SolidColors[modeName]; } } var progressBars = FindObjectsOfType <dfProgressBar>(); foreach (var progressBar in progressBars) { if (progressBar.ProgressColor.r == 14 && progressBar.ProgressColor.g == 103 && progressBar.ProgressColor.b == 163) { progressBar.ProgressColor = GlobalData.Instance.SolidColors[modeName]; } } //foreach (var slot in lifeCounter.slots) { // var currentColor = GlobalData.Instance.SolidColors[CurrentGameMode.ModeName]; // slot.Color = new Color32(currentColor.r, currentColor.g, currentColor.b, 128); //} lifeCounter.Count = 0; uiController.ChangeImages(CurrentGameMode.ModeName); if (modeName == "ClassicMode") { modeName = "NormalMode"; //KLUDGE: los nombres de los sprites dicen Normal en lugar de Classic } string strippedString = modeName.Replace("Mode", string.Empty); pauseMenu.pauseIndicator.SpriteName = strippedString + "PausedBig"; //pauseMenu.pauseButton.BackgroundSprite = strippedString + "Pause"; }