Ejemplo n.º 1
0
    public void DamageByEnemy()
    {
        if (isDead)
        {
            return;
        }

        --healthPoint;

        playerAnim.Damage();

        if (healthPoint <= 0)
        {
            playerAnim.Dead();
        }

        cameraShake.PlayCameraShake();
        //healthPoint -= 1;
        //healthPoint = healthPoint - 1;
    }