Beispiel #1
0
        void OnUpdate()
        {
            if (!_previewStarted)
            {
                _previewStarted = true;
                _previewGraph.Nodes[_previewNodeIndex].Execute(NodeFlowDataFactory.Create(Controller.transform));
            }

            if (_isPreviewing)
            {
                if (_previewGraph.CurrentExecutionCount == 0)
                {
                    DashTween.DelayedCall(1f, StopPreview);
                }
            }
        }