/// <summary> /// Initializes a new instance of the <see cref = "WaitForHomeReached">WaitForHomeReached</see> <see cref = "CustomYieldInstruction">CustomYieldInstruction</see>. /// </summary> /// <param name="employee">The <see cref = "EmployeeComponent">Employee</see> whose <see cref = "EmployeeComponent.HomeReached">HomeReached</see> event is being waited for.</param> public WaitForHomeReached(EmployeeComponent employee) { Employee = employee; Employee.HomeReached += OnHomeReached; }
/// <summary> /// Initializes a new instance of the <see cref = "WaitForCompanyReached">WaitForCompanyReached</see> <see cref = "CustomYieldInstruction">CustomYieldInstruction</see>. /// </summary> /// <param name="employee">The <see cref = "EmployeeComponent">Employee</see> whose <see cref = "EmployeeComponent.CompanyReached">CompanyReached</see> event is being waited for.</param> public WaitForCompanyReached(EmployeeComponent employee) { Employee = employee; Employee.CompanyReached += OnCompanyReached; }