HitData Class

Summary

Information about when and how to activate a PlatformerGameKit.HitTrigger during an attack animation.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["HitData"] class Type type-node

Syntax

[Serializable]
public sealed class HitData

Remarks

Documentation: Melee Attacks

Attributes

Type Description
SerializableAttribute

Properties

Name Value Summary
Area Vector2[]
[UnityEngine.SerializeField] A series of points defining the outline of the area affected by this hit.
Damage int
[UnityEngine.SerializeField] The amount of damage this hit deals.
EndTime float
[UnityEngine.SerializeField] The Animancer.AnimancerState.Time when this hit becomes inactive.
StartTime float
[UnityEngine.SerializeField] The Animancer.AnimancerState.Time when this hit becomes active.

Methods