Пример #1
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     inputPort  = this.UpdatePortValue(nameof(input), PortIO.Input);
     outputPort = this.UpdatePortValue(nameof(output), PortIO.Output);
     inputPort.Broadcast(outputPort).AddTo(LifeTime);
 }
Пример #2
0
        protected override UniTask OnExecute()
        {
            PrintLog(GetMessage(), mode);
            logPort.Broadcast(this).
            AddTo(LifeTime);

            return(UniTask.CompletedTask);
        }
Пример #3
0
        protected override UniTask OnExecute()
        {
            PrintLog(GetMessage(), mode);

            logPort.Broadcast(this).
            AddTo(LifeTime);

            logPort.Receive <IContext>()
            .Select(x => x.Broadcast(this))
            .Subscribe()
            .AddTo(LifeTime);

            return(UniTask.CompletedTask);
        }
Пример #4
0
 public void Execute(ILifeTime lifeTime)
 {
     port.Broadcast(this).
     AddTo(lifeTime);
 }
Пример #5
0
 protected override void OnExecute()
 {
     PrintLog(GetMessage(), mode);
     logPort.Broadcast(this).
     AddTo(LifeTime);
 }
 public UniTask Execute(ILifeTime lifeTime)
 {
     port.Broadcast(this).AddTo(lifeTime);
     return(UniTask.CompletedTask);
 }