public float Damage(float damage) { if ((1 << this.gameObject.layer) == playerLayerMask) { activateScreenShake.Activator(this); } return(this.currentHealth -= damage); }
public float Damage(float damage) { if ((1 << this.gameObject.layer) == playerLayerMask) { activateScreenShake.Activator(this); } return(this.currentHealth -= damage); }