public void Apply()
    {
        string[] newNames = mwm.sd.names;
        if (LeftInput.text != "")
        {
            newNames[0] = LeftInput.text;
        }
        if (RightInput.text != "")
        {
            newNames[1] = RightInput.text;
        }

        mwm.sd.names     = newNames;
        mwm.sws.sd.names = newNames;
        string json = JsonUtility.ToJson(mwm.sd);

        System.IO.File.WriteAllText(Application.persistentDataPath + statsFileName, json);
        mwm.Refresh();
    }