damage sender that damages TriggerDamageReceiver when unity trigger events occur (OnTriggerEnter/OnTriggerExit(2D))
https://adventure.softleitner.com/manual/damage
|
enum | DirectionMode {
Forward
, Up
, Right
, SenderToReceiver
,
SenderToReceiverXZ
, None
} |
|
|
CharacterBase | Character |
|
DamageParameter[] | Damages |
|
DirectionMode | Direction |
|
float | Magnitude = 0f |
|
bool | SendStart = true |
|
bool | SendTick = false |
|
bool | SendEnd = false |
|
float | TickRate |
|
bool | SendOnce |
|
UnityEvent | Damaged |
|
UnityEvent< TItem > | ItemAdded |
|
UnityEvent< TItem > | ItemRemoved |
|
UnityEvent | ItemsChanged |
|
|
virtual void | Update () |
|
override void | OnDisable () |
|
override void | onItemAdded (TriggerDamageReceiver item) |
|
override void | onItemRemoved (TriggerDamageReceiver item) |
|
virtual void | assignDamageVector (DamageEvent e) |
|
virtual void | OnEnable () |
|
virtual void | OnTriggerEnter2D (Collider2D collision) |
|
virtual void | OnTriggerExit2D (Collider2D collision) |
|
virtual void | OnTriggerEnter (Collider other) |
|
virtual void | OnTriggerExit (Collider other) |
|
void | clear () |
|
virtual void | tryAdd (Component component) |
|
virtual void | tryRemove (Component component) |
|
virtual void | onItemAdded (TItem item) |
|
virtual void | onItemRemoved (TItem item) |
|
◆ OnDamage()
virtual void AdventureCore.TriggerDamageSender.OnDamage |
( |
DamageEvent | e | ) |
|
|
inlinevirtual |
◆ OnDisable()
override void AdventureCore.TriggerDamageSender.OnDisable |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ PostDamage()
◆ PreDamage()
virtual bool AdventureCore.TriggerDamageSender.PreDamage |
( |
IDamageReceiver | receiver | ) |
|
|
inlinevirtual |
◆ AssociatedCharacter
CharacterBase AdventureCore.TriggerDamageSender.AssociatedCharacter |
|
get |