private static void PlayStateChange(PlayModeStateChange state) { // Handle Editor play states (block Play when Input disabled / close VX when Play stopped) if (state == PlayModeStateChange.ExitingPlayMode) { Debug.Log("Editor Play Stopping : Shutting down VX1 Simulator"); VoxieCaptureVolume capture_volume = FindObjectOfType <VoxieCaptureVolume>(); capture_volume.ShutdownVX1(); } }
private void ExceptionHandler(String custom_message, Exception E) { if (custom_message != "") { Debug.LogError(custom_message); } Debug.LogError(E.Message); VoxieCaptureVolume capture_volume = FindObjectOfType <VoxieCaptureVolume>(); capture_volume.ShutdownVX1(); }