コード例 #1
0
    public static void SavePetInfo(PetProperties pet)
    {
        string        key     = pet.TargetName;
        List <string> petInfo = new List <string>()
        {
            pet.TargetName,
            pet.name,
            pet.Level.ToString(),
            pet.Experience.ToString(),
            pet.Life.ToString(),
            pet.Hungry.ToString(),
            pet.Happiness.ToString(),
            pet.Cleanness.ToString(),
        };

        PlayerPrefsX.SetStringList(key, petInfo);
    }