mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Minor improvement (added #if UNITY_EDITOR) after merging pull request, see #1939, see commit 5fd4494e.
This commit is contained in:
parent
80973bc1aa
commit
57dadbdd81
@ -320,10 +320,12 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
void OnEnable() {
|
void OnEnable() {
|
||||||
if (!Application.isPlaying)
|
if (!Application.isPlaying)
|
||||||
LateUpdate();
|
LateUpdate();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void OnDisable () {
|
void OnDisable () {
|
||||||
if (clearStateOnDisable && valid)
|
if (clearStateOnDisable && valid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user