コード例 #1
0
 void AcceptApplication(ResidentialTracker applicantTracker)
 {
     if (!applicantTracker.isActiveAndEnabled)
     {
         return;
     }
     if (applicantTracker.unemployedPopulation >= 1)
     {
         AddUsers(1);
         employees.Add(applicantTracker);
         applicantTracker.AcceptApplication();
     }
     else
     {
         RejectApplication(applicantTracker);
     }
 }
コード例 #2
0
 void AcceptApplication(ResidentialTracker applicantTracker)
 {
     if (applicantTracker.unemployedPopulation >= 1 && !Serializer.IsLoading)
     {
         AddUsers(1);
         employees.Add(applicantTracker);
         applicantTracker.AcceptApplication();
     }
     else if (Random.Range(0, 5) > 3 && !Serializer.IsLoading)
     {
         AcceptApplication(applicantTracker);
     }
     else
     {
         RejectApplication(applicantTracker);
     }
 }