[unity] Handle Unity Animator warning in edit mode

This commit is contained in:
John 2017-07-28 15:23:01 +08:00 committed by GitHub
parent 03f8313435
commit 0f620d9c6c

View File

@ -75,7 +75,12 @@ namespace Spine.Unity {
public void Update () {
if (!valid) return;
#if UNITY_EDITOR
if (Application.isPlaying)
translator.Apply(skeleton);
#else
translator.Apply(skeleton);
#endif
// UpdateWorldTransform and Bone Callbacks
{