public void FirstSettingsJson()
 {
     gameObject.GetComponent <JsonSerial>()._VolumeData.OpeningsAnimation = ToggleBtn.GetComponent <UnityEngine.UI.Toggle>().isOn;
     gameObject.GetComponent <JsonSerial>()._VolumeData.volumeBackground  = MasterSlider.GetComponent <UnityEngine.UI.Slider>().value;
     gameObject.GetComponent <JsonSerial>()._VolumeData.volumeFx          = FXSlider.GetComponent <UnityEngine.UI.Slider>().value;
     gameObject.GetComponent <JsonSerial>().saveSettings();
 }
    void Start()
    {
        if (File.Exists(Application.persistentDataPath + "/Settings.json"))
        {
            VolumeData SettingsData = gameObject.GetComponent <JsonSerial>().getSettings();
            ToggleBtn.GetComponent <UnityEngine.UI.Toggle>().isOn     = SettingsData.OpeningsAnimation;
            MasterSlider.GetComponent <UnityEngine.UI.Slider>().value = SettingsData.volumeBackground;
            FXSlider.GetComponent <UnityEngine.UI.Slider>().value     = SettingsData.volumeFx;
        }
        else
        {
            FirstSettingsJson();
        }

        startPos  = Background.transform.localScale;
        endPos.x  = 1.03f;
        endPos.y  = 1.03f;
        endPos.z  = startPos.z;
        StartTime = Time.time;
    }