[unity] SkeletonRagdoll fix for 3.5 AnimationState

This commit is contained in:
pharan 2016-11-18 06:10:50 +08:00
parent d57aa03680
commit 752516e00f
2 changed files with 2 additions and 2 deletions

View File

@ -237,6 +237,7 @@ namespace Spine.Unity.Modules {
float startTime = Time.time;
float startMix = mix;
while (mix > 0) {
skeleton.SetBonesToSetupPose();
mix = Mathf.SmoothStep(startMix, target, (Time.time - startTime) / duration);
yield return null;
}

View File

@ -35,8 +35,6 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Spine.Unity;
using UnityEngine.Assertions;
namespace Spine.Unity.Modules {
[RequireComponent(typeof(SkeletonRenderer))]
@ -255,6 +253,7 @@ namespace Spine.Unity.Modules {
float startTime = Time.time;
float startMix = mix;
while (mix > 0) {
skeleton.SetBonesToSetupPose();
mix = Mathf.SmoothStep(startMix, target, (Time.time - startTime) / duration);
yield return null;
}