void deselectDogSlot() { if (selectedDogSlot) { selectedDogSlot.Deselect(); selectedDogSlot = null; } }
void selectDogSlot(Dog dog) { if (selectedDogSlot && !selectedDogSlot.Equals(dog.OccupiedSlot)) { deselectDogSlot(); } selectedDogSlot = (DogWorldSlot)dog.OccupiedSlot; }