コード例 #1
0
 void deselectDogSlot()
 {
     if (selectedDogSlot)
     {
         selectedDogSlot.Deselect();
         selectedDogSlot = null;
     }
 }
コード例 #2
0
 void selectDogSlot(Dog dog)
 {
     if (selectedDogSlot && !selectedDogSlot.Equals(dog.OccupiedSlot))
     {
         deselectDogSlot();
     }
     selectedDogSlot = (DogWorldSlot)dog.OccupiedSlot;
 }