Beispiel #1
0
 /// <summary>
 /// 受到技能伤害 要减血
 /// </summary>
 /// <param name="hurt"></param>
 private void OnSkillHit(int hurt)
 {
     currenAttribute.HP -= hurt;
     if (currenAttribute.HP <= 0)
     {
         currenAttribute.HP = 0;
         HUDUpdate();
         //进入到死亡状态
         playerFSM.ToNext(FSMState.Dead);
     }
     else
     {
         HUDUpdate();
     }
 }