private void SearchHomeAndWork() { if (home == null) { var housing = HousingMarket.GetVacantHouse(); if (housing != null) { housing.AddResident(me); home = housing; } } if (home != null && firstWork == null) { var employer = LabourOffice.GetVacantEmployer(); if (employer != null) { employer.AddEmployee(me); firstWork = employer; } } }
public void Awake() { LabourOffice.AddEmployer(this); }