Class HitTaker
Used for dealing damage to enemies
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public static class HitTaker
Methods
| Edit this page View SourceHit(Transform, GameObject, int, AttackType, CardinalDirection)
Attempts to hit an enemy. Returns true if damage has been dealt
Declaration
public static bool Hit(Transform target, GameObject attacker, int damage, AttackType type, CardinalDirection hitDirection)
Parameters
Type | Name | Description |
---|---|---|
Transform | target | The target enemy to damage |
GameObject | attacker | The object doing the attack |
int | damage | The amount of damage to deal |
AttackType | type | The type of attack being dealt |
CardinalDirection | hitDirection | The direction of the attack |
Returns
Type | Description |
---|---|
bool | Returns true if damage has been dealt |