Skip to content

Commit

Permalink
fix(example): not to create redundunt instances
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Feb 21, 2021
1 parent 1d5240e commit 56ee74f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ public class GraphSelectorController : MonoBehaviour {
var graph = graphs[option.text];

Debug.Log($"Graph Changed: {option.text}");
sceneDirector.GetComponent<SceneDirector>().ChangeGraph(Instantiate(graph));
sceneDirector.GetComponent<SceneDirector>().ChangeGraph(graph);
}
}

0 comments on commit 56ee74f

Please sign in to comment.