Ejemplo n.º 1
0
 public override void RemoveVillagerFromWork(int villager)
 {
     if (villager == 0)
     {
         masterVillager.VillagerStopWork();
         villagerIndexes.Remove(baseManager.GetVillagerIndex(masterVillager));
         workingVillagers.RemoveAt(workingVillagers.IndexOf(masterVillager));
         masterVillager = null;
     }
     else if (villager == 1)
     {
         apprenticeVillager.VillagerStopWork();
         villagerIndexes.Remove(baseManager.GetVillagerIndex(apprenticeVillager));
         workingVillagers.RemoveAt(workingVillagers.IndexOf(apprenticeVillager));
         apprenticeVillager = null;
     }
 }