示例#1
0
        public void EnableDebug()
        {
            if (CurrentExecutor.IsRunningGraph(this))
            {
                throw new Exception("TODO");
            }

            CurrentExecutor = DebugExecutor;
            OnChangeExecutor.Invoke();
        }
示例#2
0
        public void Init()
        {
            if (initialised)
            {
                return;
            }

            if (OnChangeExecutor == null)
            {
                OnChangeExecutor = new UnityEvent();
            }

            NodesByName           = new Dictionary <string, Component>();
            DefaultValuesByInPort = new Dictionary <InPort, DefaultValue>();
            Edges = new List <Edge>();

            LoadGraphFile();

            CurrentExecutor = PrimaryExecutor;
            OnChangeExecutor.Invoke();

            initialised = true;
        }