U3D搞动画,代码如下:
run时提示错误:
MissingComponentException: There is no 'Animation' attached to the "Player" game object, but a script is trying to access it.
You probably need to add a Animation to the game object "Player". Or your script needs to check if the component is attached before using it.
UnityEngine.Animation.PlayQueued (System.String animation) (at C:/buildslave/unity/build/artifacts/generated/common/modules/Animations.gen.cs:677)
Player.Update () (at Assets/Script/Player.cs:19)
跪求大神!