/// <summary> /// 进入状态 /// </summary> public override void OnEnter() { //切换跑的状态 CurrAinmator.SetBool(ToAnimatorCondition.ToRun.ToString(), true); //重置转身速度 m_RotateSpeed = 0; }
/// <summary> /// 离开状态 /// </summary> public override void OnLeave() { CurrAinmator.SetBool(ToAnimatorCondition.ToDie.ToString(), false); }
/// <summary> /// 进入状态 /// </summary> public override void OnEnter() { //切换死亡状态 CurrAinmator.SetBool(ToAnimatorCondition.ToDie.ToString(), true); }
/// <summary> /// 离开状态 /// </summary> public override void OnLeave() { //离开待机状态将待机状态的条件设置为false CurrAinmator.SetBool(ToAnimatorCondition.ToIdleFight.ToString(), false); }
/// <summary> /// 进入状态 /// </summary> public override void OnEnter() { //切换待机动画 CurrAinmator.SetBool(ToAnimatorCondition.ToIdleFight.ToString(), true); }