private void AddExperience(PetInfoProperties petInfo) { if (petInfo.pet.Experience < 100) { petInfo.pet.Experience += 10; // UpdateCanvasPet(petInfo); } }
private void AddCleannes(PetInfoProperties petInfo) { if (petInfo.pet.Cleanness < 100) { petInfo.pet.Cleanness++; //UpdateCanvasPet(_petInfo); } }
private void AddHappiness(PetInfoProperties petInfo) { if (petInfo.pet.Happiness < 100) { petInfo.pet.Happiness++; // UpdateCanvasPet(_petInfo); } }
private void AddFood(PetInfoProperties petInfo) { if (petInfo.pet.Hungry < 100) { petInfo.pet.Hungry++; //UpdateCanvasPet(_petInfo); } }
public void RemoveLife(PetInfoProperties _petInfo) { _petInfo.pet.Life--; if (_petInfo.pet.Life < 0) { _petInfo.pet.Life = 0; } PetCreator.SavePetInfo(_petInfo.pet); }
public void LoadPetByTarget(GameObject obj, string targetName) { if (HasPet(targetName) == false) { PetInfoProperties newPet = new PetInfoProperties { pet = PetCreator.GetPetByTargetName(targetName), petObj = obj }; allPets.Add(newPet); } else { print("esta mascota ya la tienes añadida"); } }