public void TakeDamage(int damageLoss)
    {
        if (!controller.isI_frame)
        {
            healthPts -= Mathf.Abs(damageLoss);
            controller.KnockPlayerBack(inflictorPosition);
            ScreenShake.screenShaker.ShakeScreen(damagedScreenShakeFrames, damagedScreenShakeIntensity);
        }

        if (healthPts <= 0)
        {
            //call death function
            healthPts = 0;
        }
    }