示例#1
0
 void OnDestroy()
 {
     MLHands.Stop();
     MLInput.Stop();
     MLWorldPlanes.Stop();
     MLWorldRays.Stop();
 }
示例#2
0
 /// <summary>
 /// Cleans up component.
 /// </summary>
 virtual protected void OnDisable()
 {
     MLWorldRays.Stop();
 }
示例#3
0
 private void OnDestroy()
 {
     MLWorldRays.Stop();
 }
 // When the prefab is destroyed, stop MLWorldRays API from running.
 private void OnDestroy()
 {
     MLInput.OnControllerButtonDown -= OnButtonDown;
     MLInput.Stop();
     MLWorldRays.Stop();
 }