mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +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
|
||||
|
||||
#if UNITY_EDITOR
|
||||
void OnEnable() {
|
||||
if (!Application.isPlaying)
|
||||
LateUpdate();
|
||||
}
|
||||
#endif
|
||||
|
||||
void OnDisable () {
|
||||
if (clearStateOnDisable && valid)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user