AnimationEvent aevent = new AnimationEvent()
aevent.functionName = "setInfo"//方法名
aevent.time = 1.05f
gunMove.AddEvent(aevent)
调试一下
AnimationClip gunMove = animation.GetClip("left")//动画名AnimationEvent aevent = new AnimationEvent()
aevent.functionName = "setInfo"//方法名
aevent.time = 1.05f
gunMove.AddEvent(aevent)
调试一下
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)