Пример #1
0
        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);
        }
Пример #2
0
        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);
        }