private void Start() { var buttonNode = new OnClickButtonNode(this.GetComponent <Button>()); new PagePopNode(buttonNode, this.StoreHolder) .Subscribe(_ => { }, Debug.LogException) .AddTo(this); }
private void Start() { var scenes = new[] { this.gameObject.scene.name }; var button = new OnClickButtonNode(this.GetComponent <Button>()); var scene = new SceneRemoveNode(button, this.storeHolder, scenes); scene .Subscribe(_ => { }, Debug.LogException) .AddTo(this); }
public override IDisposable Subscribe(IObserver <Any> observer) { var buttonNode = new OnClickButtonNode(button); var intNode = new ConstIntNode(buttonNode, 1); var stateActionNode = new StateActionNode( intNode, stateKey, new IncrementReducer() ); var stateWriterNode = new StateWriterNode(stateActionNode, this.storeHolder); return(stateWriterNode.Subscribe(observer)); }
private void Start() { if (scenes == null || scenes.Length < 1) { Debug.LogWarning("Not defined scenes. subscription aborted"); return; } var button = new OnClickButtonNode(this.GetComponent <Button>()); var scene = new SceneRemoveNode(button, this.storeHolder, this.scenes); scene .Subscribe(_ => { }, Debug.LogException) .AddTo(this); }