StatModifierPlugin.OnAfterAttack
Declaration#
public virtual void OnAfterAttack(IDamageable target, IDamageSource damageSource, IAttackResult attackResult)Parameters#
| Name | Description |
|---|---|
| target | Object targeted by attack |
| damageSource | Object performing the attack |
| attackResult | Result of the attack |
Description#
Method to call whenever the player deals damage to another object
Usage#
Example
using NullSave.GDTK;using NullSave.GDTK.Stats;using UnityEngine;
public class CodeSample : MonoBehaviour{
public BasicCollisionDamage attackSource; public BasicDamageable attackTarget;
public void Example(StatModifierPlugin target, IAttackResult other) { target.OnAfterAttack(attackTarget, attackSource, other); }
}