var shoulder : Transform; //比如上半身骨骼
//var shoulder01 : Transform; //比如下半身骨骼
function Start()
{
animation.Play("walk");
animation["jump"].layer = 10;
animation["jump"].blendMode = AnimationBlendMode.Blend;
animation["jump"].wrapMode = WrapMode.Once;
animation["jump"].AddMixingTransform(shoulder);
//animation["walk"].AddMixingTransform(shoulder01);
}
function Update()
{
if (Input.GetKeyDown ("space"))
{
animation.CrossFade("jump");
}
}