public void WriteFromConfigFile()
    {
        Directory.CreateDirectory(_baseDir);
        var writer     = new StreamWriter(path);
        var charString = new CharacterStatsString(this);

        writer.Write(JsonUtility.ToJson(charString));
        writer.Close();
    }
    public CharacterStats(CharacterStatsString statsString)
    {
        Pause              = InterpretKey(statsString.Pause);
        Interact           = InterpretKey(statsString.Interact);
        MeleeAttack        = InterpretKey(statsString.MeleeAttack);
        RangedAttack       = InterpretKey(statsString.RangedAttack);
        Jump               = InterpretKey(statsString.Jump);
        HorizontalPositive = InterpretKey(statsString.HorizontalPositive);
        HorizontalNegative = InterpretKey(statsString.HorizontalNegative);
        VerticalPositive   = InterpretKey(statsString.VerticalPositive);
        VerticalNegative   = InterpretKey(statsString.VerticalNegative);

        jumpSpeed    = statsString.jumpSpeed;
        inputLatency = statsString.inputLatency;
    }