public static DashGraph CreateEmptyGraph() { DashGraph graph = ScriptableObject.CreateInstance <DashGraph>(); ((IInternalGraphAccess)graph).SetVersion(DashCore.GetVersionNumber()); return(graph); }
static void CheckDashVersion() { if (EditorConfig.lastUsedVersion == 0 || DashCore.GetVersionNumber() > EditorConfig.lastUsedVersion) { // TODO let user know? } EditorConfig.lastUsedVersion = DashCore.GetVersionNumber(); }
public void Initialize(DashController p_controller) { if (_initialized) { return; } if (version < DashCore.GetVersionNumber()) { //Debug.LogWarning("Current Dash version is higher than initialized Graph, can result in possible issues please migrate in editor. Controller "+p_controller.name); } Controller = p_controller; _nodes.ForEach(n => ((INodeAccess)n).Initialize()); variables.Initialize(p_controller.gameObject); _initialized = true; }