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