public void OnConfirmClickedCustom()
 {
     firstSelectionExtras.Select();
     SCR_CustomizationColor.SetColors(colorDemon.color, colorAngel.color);
     mainExtraPanel.SetActive(true);
     customizationPanel.SetActive(false);
 }
    public void OnSelectLevelClicked()
    {
        Debug.Log("LEVEL SELECTED: " + TXT_LevelNumber.text);
        if (!PlayerPrefs.HasKey("rAngel"))
        {
            SCR_CustomizationColor.SetColors(Color.black, Color.white);
        }
        else
        {
            SCR_CustomizationColor.GetAllColors();
        }

        SCR_Level.estimatedTimeInSeconds = tiempoEstimado;
        SCR_Level.tiempoACambiar         = tiempoColores;
        SCR_Level.lerpEnemies            = isLeanTweenActivated;
        SCR_Level.index = int.Parse(TXT_LevelNumber.text);

        var croppedTexture = new Texture2D((int)IMG_LevelImage.sprite.rect.width, (int)IMG_LevelImage.sprite.rect.height);
        var pixels         = IMG_LevelImage.sprite.texture.GetPixels((int)IMG_LevelImage.sprite.textureRect.x,
                                                                     (int)IMG_LevelImage.sprite.textureRect.y,
                                                                     (int)IMG_LevelImage.sprite.textureRect.width,
                                                                     (int)IMG_LevelImage.sprite.textureRect.height);

        croppedTexture.SetPixels(pixels);
        croppedTexture.Apply();

        LevelGenerator.map = croppedTexture;
        UnityEngine.SceneManagement.SceneManager.LoadScene("SCN_Nivel_0");
    }
 public void OnRestoreDefaultClicked()
 {
     firstSelectionExtras.Select();
     colorDemon.color = Color.black;
     colorAngel.color = Color.white;
     SCR_CustomizationColor.SetColors(colorDemon.color, colorAngel.color);
     mainExtraPanel.SetActive(true);
     customizationPanel.SetActive(false);
 }