赞
踩
AnimatorStateInfo stateinfo = anim.GetCurrentAnimatorStateInfo(0); //参数表示动画层的id
if (stateinfo.IsName("st"))//当前播放的动画
{
anim.SetBool("Run",true);
anim.GetComponent<SkeletonMecanim>().skeleton.ScaleX = -1;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。