public void EnableDebug() { if (CurrentExecutor.IsRunningGraph(this)) { throw new Exception("TODO"); } CurrentExecutor = DebugExecutor; OnChangeExecutor.Invoke(); }
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; }