摘要:
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); //ani 阅读全文
posted @ 2010-12-15 17:23
softimagewht
阅读(383)
评论(0)
推荐(0)
摘要:
function Start () { animation.wrapMode = WrapMode.Loop; animation["jump"].wrapMode = WrapMode.Once; animation["jump"].layer = 1; animation.Stop();}function Update () { if (Mathf.Abs(Input.GetAxis("Vertical")) 0.1) animation.CrossFade("run"); else animation.CrossFade("walk"); if (Input.GetKeyDown ( 阅读全文
posted @ 2010-12-15 16:39
softimagewht
阅读(241)
评论(0)
推荐(0)

浙公网安备 33010602011771号