RemoveInsurance() public method

public RemoveInsurance ( AirlineInsurance insurance ) : void
insurance AirlineInsurance
return void
コード例 #1
0
 public static void CheckExpiredInsurance(Airline airline)
 {
     DateTime date = GameObject.GetInstance().GameTime;
     foreach (AirlineInsurance policy in airline.InsurancePolicies)
     {
         if (policy.InsuranceExpires < date)
         {
             airline.RemoveInsurance(policy);
         }
     }
 }