zhaoyang 2 жил өмнө
parent
commit
313dc763b2

+ 6 - 8
GameClient/Assets/ThirdParty/Live2D/Cubism/Framework/MotionFade/CubismFadeStateObserver.cs

@@ -132,10 +132,9 @@ namespace Live2D.Cubism.Framework.MotionFade
         /// <param name="controller">Animation controller playable.</param>
         public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex, AnimatorControllerPlayable controller)
         {
-            if (animator.gameObject.name == "kp_zuochi2")
-            {
 
-            }
+            Debug.Log("zoya333:" + animator);
+            Debug.Log("zoya333:" + animator.gameObject);
             var fadeController = animator.gameObject.GetComponent<CubismFadeController>();
 
             // Fail silently...
@@ -216,11 +215,10 @@ namespace Live2D.Cubism.Framework.MotionFade
                     motionIndex = j;
                     break;
                 }
-                if (animator.gameObject.name == "kp_zuochi2")
-                {
-                    Debug.Log("zoya000:" + motionIndex);
-                    Debug.Log("zoya111:" + _cubismFadeMotionList.CubismFadeMotionObjects[motionIndex]);
-                }
+
+                Debug.Log("zoya000:" + motionIndex);
+                Debug.Log("zoya111:" + _cubismFadeMotionList.CubismFadeMotionObjects[motionIndex]);
+
                 playingMotion.Motion = (motionIndex == -1)
                             ? null
                             : _cubismFadeMotionList.CubismFadeMotionObjects[motionIndex];