Skip to content

Commit

Permalink
fix(example): remove stale annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jan 17, 2021
1 parent 7a2c153 commit 61f2041
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Assets/MediaPipe/Examples/Scripts/SceneDirector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class SceneDirector : MonoBehaviour {
}

void OnDisable() {
DestroyGraph();
StopGraph();
StopCamera();
Glog.Shutdown();
}
Expand Down Expand Up @@ -109,7 +109,7 @@ public class SceneDirector : MonoBehaviour {

public void ChangeGraph(GameObject graphPrefab) {
lock (graphLock) {
DestroyGraph();
StopGraph();
this.graphPrefab = graphPrefab;

if (webCamDevice != null) {
Expand All @@ -132,10 +132,6 @@ public class SceneDirector : MonoBehaviour {
StopCoroutine(graphRunner);
graphRunner = null;
}
}

void DestroyGraph() {
StopGraph();

if (graphContainer != null) {
Destroy(graphContainer);
Expand Down

0 comments on commit 61f2041

Please sign in to comment.