Beispiel #1
0
 public PathController(ScriptableGraph Graph, IPathService pathService)
 {
     view       = new PathView(pathService);
     cameraList = Graph.cameraScriptableList;
     for (int i = 0; i < Graph.circularPath.Count; i++)
     {
         circularPath.Add(Graph.circularPath[i].path);
     }
     for (int i = 0; i < Graph.Graph.Count; i++)
     {
         Node node = new Node();
         node.node        = Graph.Graph[i].node;
         node.teleport    = Graph.Graph[i].teleport;
         node.connections = Graph.Graph[i].GetConnections();
         graph.Add(node);
     }
 }
Beispiel #2
0
 public void DestroyPath()
 {
     view.DestroyPath();
     view = null;
 }