BasicDamageValue.CalculateHit
Declaration#
public virtual bool CalculateHit(IDamageable target, IDamageSource source)Parameters#
| Name | Description |
|---|---|
| target | Target being attacked |
| source | Object performing attack |
Description#
Check if the damage should be applied
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(BasicDamageValue target, IDamageable damageable, IDamageSource source) { bool result = target.CalculateHit(damageable, source); }}