소스 검색

[unity] Minor improvement (added #if UNITY_EDITOR) after merging pull request, see #1939, see commit 5fd4494e.

Harald Csaszar 4 년 전
부모
커밋
57dadbdd81
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs

+ 2 - 0
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs

@@ -320,10 +320,12 @@ namespace Spine.Unity {
 		}
 	#endif
 
+	#if UNITY_EDITOR
 		void OnEnable() {
 			if (!Application.isPlaying)
 				LateUpdate();
 		}
+	#endif
 
 		void OnDisable () {
 			if (clearStateOnDisable && valid)