Exemple #1
0
    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;
            }
        }
    }
Exemple #2
0
 public void Awake()
 {
     LabourOffice.AddEmployer(this);
 }