public EiDamage ConfigHealing(EiCombatData data, EiHealth target) { data.Convert(); this.damageType = data.damageType; this.data = data; this.target = target; this.damage = data.flatAmount + target.CurrentHealth * data.currentHealthPercentage + target.MaxHealth * data.maxHealthPercentage; return(this); }
protected override void AttachComponents() { healthComponent = GetComponent <EiHealth> (); base.AttachComponents(); }
protected override void AttachComponents() { damageTarget = GetComponentInParent <EiHealth> (); base.AttachComponents(); }
public EiDamage ConfigDamage(EiCombatData data, EiHealth target) { this.target = target; this.damage = data.flatAmount + target.CurrentHealth * data.currentHealthPercentage + target.MaxHealth * data.maxHealthPercentage; return(ConfigDamage(data)); }
protected override void AttachComponents() { targetRootToDestroy = this.transform; healthComponent = GetComponent <EiHealth> (); base.AttachComponents(); }