예제 #1
0
파일: Trigger.cs 프로젝트: kitfka/AlleyCat
        protected override void PostConstruct()
        {
            base.PostConstruct();

            OnTrigger
            .TakeUntil(Disposed.Where(identity))
            .Where(_ => Animation.IsSome)
            .Subscribe(_ => Context.AnimationTree.Set(Parameter, true), this);

            if (Logger.IsEnabled(LogLevel.Trace))
            {
                OnTrigger
                .TakeUntil(Disposed.Where(identity))
                .Subscribe(_ => this.LogTrace("Animation was triggered."), this);
            }
        }