Animator anim = this.GetComponent<Animator>();動畫
AnimatorStateInfo animatorInfo;
animatorInfo = anim.GetCurrentAnimatorStateInfo(0);
if (IsOk)
{
anim.SetTrigger(str);
}this
if ((animatorInfo.normalizedTime > 1) && (animatorInfo.IsName(str)))
{orm
IsOk = true;
//print("動畫播放完了");
GameManager._Instance.IsPlay = false;
GameManager._Instance.OpenRay();im
} else { IsOk = false; GameManager._Instance.CloseRay(); //print("動畫正在播放中"); }