public override void HealthMasterSet(LivingHealthMasterBase livingHealth) { bodyPart = GetComponent <BodyPart>(); playerHealth = bodyPart.HealthMaster as PlayerHealthV2; bodyPart.ModifierChange += ModifierChanged; playerHealth.OrNull()?.PlayerMove.AddModifier(this); }
public void Initialize() { bodyPart = GetComponent <BodyPart>(); playerHealth = bodyPart.HealthMaster as PlayerHealthV2; bodyPart.ModifierChange += ModifierChanged; playerHealth.OrNull()?.PlayerMove.AddModifier(this); }