protected override void Loaded(BehaviorLoadedEventArgs args) { if (!UseWaitingQueueOfParent) { args.TrackSubscription(ChildEnter.Subscribe(ProcessEnteringChild)); } else { args.TrackSubscription(Update.Where(_ => !IsProcessing).Subscribe(_ => TakeCustomerFromQueueAndProcess())); } }
protected override void Loaded(BehaviorLoadedEventArgs args) { args.TrackSubscription(ChildEnter.Subscribe(OnChildEnter)); }