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