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

This commit is contained in:
Harald Csaszar 2021-08-12 11:35:29 +02:00
parent 80973bc1aa
commit 57dadbdd81

View File

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