Skip to content

Commit 432622b

Browse files
committed
Style changes, entry point node implementation
1 parent a2fd8e3 commit 432622b

20 files changed

+103
-16
lines changed

Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Editor/DataParser.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using UnityEditor.Experimental.GraphView;
5+
using UnityEngine;
6+
7+
public class DataParser
8+
{
9+
private static Node _entryPointNode;
10+
11+
public static void SetEntryPoint(Node entryPointNode)
12+
{
13+
_entryPointNode = entryPointNode;
14+
}
15+
16+
public static void SaveNodes(IEnumerable<Edge> edges)
17+
{
18+
if (!edges.Any() || _entryPointNode==null) return;
19+
//Debug.Log(edges.First().input.node.title+ "Output"+edges.First().output.node.title);
20+
var firstConnection = edges.First(x => x.output.node == _entryPointNode).input.node;
21+
Debug.Log(firstConnection.title);
22+
}
23+
}

Editor/DataParser.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)