public void BleedingEffect() { if (transperancy < 215f) { bleedingImage.color = new Color(bleedingImage.color.r, bleedingImage.color.g, bleedingImage.color.b, transperancy / 255); } transperancy += Time.deltaTime * 2 * playerHealth.getBleedingDegree(); }