Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

EnemyAttackMelee.cs

Erik edited this page Apr 26, 2019 · 9 revisions

Dependencies:
Public Methods:
  • None
Public Events:
  • None
Configurable Fields:
  • damage - Damage dealt on attack
  • punchForce - Force applied to target
General Overview:

Upon colliding with another object, punchForce is applied to the colliding object's RigidBody2d. Additionally, the colliding object's CharacterHealth takes damage via .TakeDamage(damage).

Clone this wiki locally