Show / Hide Table of Contents

Class HitTaker

Used for dealing damage to enemies

Inheritance
object
HitTaker
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public static class HitTaker

Methods

| Edit this page View Source

Hit(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

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾