public void Damage(int damageValue = 1) { if (SetHeart <= 0 && isDontMove) { return; } SetHeart -= damageValue; isDontMove = true; damageFx.transform.position = this.transform.position; damageFx.Play(); StartCoroutine(Blink.PlayBlink(8, gameObject)); if (SetHeart <= 0) { StateAnimation(PlayerState.Death); MainController.Instance.GameOver(); return; } StateAnimation(PlayerState.Damage); }