|
@@ -132,9 +132,6 @@ namespace Live2D.Cubism.Framework.MotionFade
|
|
/// <param name="controller">Animation controller playable.</param>
|
|
/// <param name="controller">Animation controller playable.</param>
|
|
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex, AnimatorControllerPlayable controller)
|
|
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex, AnimatorControllerPlayable controller)
|
|
{
|
|
{
|
|
-
|
|
|
|
- Debug.Log("zoya333:" + animator);
|
|
|
|
- Debug.Log("zoya333:" + animator.gameObject);
|
|
|
|
var fadeController = animator.gameObject.GetComponent<CubismFadeController>();
|
|
var fadeController = animator.gameObject.GetComponent<CubismFadeController>();
|
|
|
|
|
|
// Fail silently...
|
|
// Fail silently...
|
|
@@ -216,14 +213,9 @@ namespace Live2D.Cubism.Framework.MotionFade
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- Debug.Log("zoya000:" + motionIndex);
|
|
|
|
- Debug.Log("zoya111:" + _cubismFadeMotionList.CubismFadeMotionObjects[motionIndex]);
|
|
|
|
-
|
|
|
|
playingMotion.Motion = (motionIndex == -1)
|
|
playingMotion.Motion = (motionIndex == -1)
|
|
- ? null
|
|
|
|
- : _cubismFadeMotionList.CubismFadeMotionObjects[motionIndex];
|
|
|
|
-
|
|
|
|
- Debug.Log("zoya:" + playingMotion.Motion);
|
|
|
|
|
|
+ ? null
|
|
|
|
+ : _cubismFadeMotionList.CubismFadeMotionObjects[motionIndex];
|
|
|
|
|
|
playingMotion.Speed = 1.0f;
|
|
playingMotion.Speed = 1.0f;
|
|
playingMotion.StartTime = Time.time;
|
|
playingMotion.StartTime = Time.time;
|