public static void GetPetData() { string str; string[] strs; Service1 ser = new Service1(); str = ser.GetListPet(playerID); strs = str.Split(':'); //set pet data petDatas = new System.Collections.Generic.List<PetData>(); for(int i = 0; i < strs.Length; ++i) { if(strs[i] == "") continue; PetData tPet = new PetData(); tPet.SetData(strs[i]); petDatas.Add(tPet); } numberOfPet = GS.petDatas.Count; }