Exemplo n.º 1
0
 /// <summary>
 /// 受傷
 /// </summary>
 public void GetHit()
 {
     if (!AdimMode)
     {
         hpui.cohp();
         PlayerHP -= 10;
         animator.SetBool("IsHurt", true);
         OnAction    = true;
         ComboNumber = 0;
         SoundEffect.Play();
         animator.SetInteger("AttackCombo", ComboNumber);
         WeaponFalse();
         CheckCombo = false;
         TimeController.LostFrame();
         if (PlayerHP <= 0)
         {
             Dead();
         }
     }
     //玩家受傷
 }