Skip to content

Commit 4309c65

Browse files
authored
Merge pull request #6 from Nicholas-Wilkinson/build-hotfix
Fixed build error caused by reticle fix
2 parents 0d14800 + 7fc5f53 commit 4309c65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Runtime/Scripts/AryzonManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,9 @@ IEnumerator DoNotCheckOrientationForSeconds(float seconds)
481481

482482
private void OnDestroy()
483483
{
484-
if (editorPoseProvider) Destroy(editorPoseProvider.gameObject);
484+
#if UNITY_EDITOR
485+
if (editorPoseProvider) Destroy(editorPoseProvider.gameObject);
486+
#endif
485487
}
486488
}
487489

0 commit comments

Comments
 (0)