Beispiel #1
0
    public void ChangeTheme(THEMEAMENAGE3D _NewTheme)
    {
        Theme = (THEMEAMENAGE3D)_NewTheme;
        //Debug.Log(Theme.ToString());
        switch (Theme)
        {
        case THEMEAMENAGE3D.Default:
            if (backGround)
            {
                backGround.GetComponent <SpriteRenderer>().color = DefaultColor;

                backGround3D.GetComponent <Renderer>().material.color = DefaultColor;

                backGroundPreviewFurniture.GetComponent <Camera>().backgroundColor = DefaultColor;
            }
            break;

        case THEMEAMENAGE3D.Sombre:
            if (backGround)
            {
                backGround.GetComponent <SpriteRenderer>().color = ThemeSombre;

                backGround3D.GetComponent <Renderer>().material.color = ThemeSombre;

                backGroundPreviewFurniture.GetComponent <Camera>().backgroundColor = ThemeSombre;
            }
            break;

        default:
            Debug.LogError("Theme not Find");
            break;
        }
    }
Beispiel #2
0
 public void ToggleTheme()
 {
     Theme++;
     if (Theme == THEMEAMENAGE3D.Finish)
     {
         Theme = THEMEAMENAGE3D.Default;
     }
     ErgoShop.Managers.SettingsManager.Instance.SoftwareParameters.Theme = Theme;
     ChangeTheme(Theme);
     SettingsManager.Instance.SaveParameters();
 }