public void DecresePlayerHP(int damage)
 {
     if (playerCurrentHP - damage < 0)
     {
         playerCurrentHP = 0;
     }
     else
     {
         playerCurrentHP -= damage;
         StartCoroutine(playerMoveControllerScript.KnockBack());
     }
 }
예제 #2
0
 public void DecreaseSeed(int point)
 {
     if (playerCurrentSeed - point <= 0)
     {
         playerCurrentSeed = 0;
         GameOver();
     }
     else
     {
         playerCurrentSeed -= point;
     }
     StartCoroutine(playerMoveControllerScript.KnockBack());
 }