コード例 #1
0
    private static PetProperties LoadPetInfo(string key)
    {
        List <string> petInfo = PlayerPrefsX.GetStringList(key);
        PetProperties loadPet = new PetProperties()
        {
            TargetName = petInfo[0],
            name       = petInfo[1],
            Level      = int.Parse(petInfo[2]),
            Experience = int.Parse(petInfo[3]),
            Life       = int.Parse(petInfo[4]),
            Hungry     = int.Parse(petInfo[5]),
            Happiness  = int.Parse(petInfo[6]),
            Cleanness  = int.Parse(petInfo[7]),
        };

        return(loadPet);
    }