Exemplo n.º 1
0
 void OnDisable()
 {
     if (home)
     {
         home.removeResidentFromBuilding(this);
     }
     if (work)
     {
         work.removeWorkerFromBuilding(this);
     }
     if (townAlliegence)
     {
         townAlliegence.removeInventoryFromTown(inventory);
     }
     gameManager.getCitizenCatalog().removeCitizenFromAllCitizens(this);
 }