private void RemoveMovingAnimal(EventArgs args) { MovingAnimalArgs animalData = (MovingAnimalArgs)args; this.stillMovingAnimals.Remove(animalData.script); // if (this.movesMade % 5 == 0 && this.stillMovingAnimals.Count == 0) { // this.ReplenishFood (); // } }
private void AddMovingAnimal(EventArgs args) { MovingAnimalArgs animalData = (MovingAnimalArgs)args; this.stillMovingAnimals.Add(animalData.script); }