HolsterAction.OnAfterAttack
#
Declarationpublic virtual void OnAfterAttack(IDamageable target, IDamageSource damageSource, IAttackResult attackResult)
#
ParametersName | Description |
---|---|
target | Object targeted by attack |
damageSource | Object performing the attack |
attackResult | Result of the attack |
#
DescriptionMethod to call whenever the player deals damage to another object
#
UsageExample
using NullSave.GDTK;using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
public BasicCollisionDamage attackSource; public BasicDamageable attackTarget;
public void Example(HolsterAction target, IAttackResult other) { target.OnAfterAttack(attackTarget, attackSource, other); }
}