Summary
The details of a hit.
- Assembly
- PlatformerGameKit
.dll - Namespace
- PlatformerGameKit
- Base Types
-
- ValueType
graph BT
Type-->Base0["ValueType"]
Type["Hit"]
class Type type-node
Syntax
public struct Hit : ValueType
Remarks
Documentation:
Hits
Constructors
Name | Summary |
---|---|
Hit |
Creates a new PlatformerGameKit.Hit with the specified details. |
Fields
Name | Constant Value | Summary |
---|---|---|
damage |
The amount of damage this hit will deal.
|
|
direction |
The direction in which the
PlatformerGameKit.Hit.force is applied. |
|
force |
The amount of knockback force applied to the object being hit.
|
|
ignore |
Objects that cannot be hit.
|
|
source |
The object causing this hit.
|
|
target |
The object being hit.
|
|
team |
The
PlatformerGameKit.Team that the PlatformerGameKit.Hit.source is on. |
Methods
Name | Value | Summary |
---|---|---|
CanHit |
bool |
Can the `component` be hit by the
Current ? |
CanHit |
bool |
Can the `gameObject` be hit by the
Current ? |
GetTarget |
Hit |
Calls
UnityEngine.Component.GetComponentInParent``1(System.Boolean) .static
|
GetTarget |
Hit |
Calls
UnityEngine.GameObject.GetComponentInParent``1 .static
|
ToString |
string | |
TryHit |
bool |
Calls
PlatformerGameKit.Hit.ITarget.ReceiveHit(PlatformerGameKit.Hit@) if the `target` can be hit by the Current . |
TryHitComponent |
bool |
Calls
PlatformerGameKit.Hit.GetTarget(UnityEngine.Component) and PlatformerGameKit.Hit.TryHit(PlatformerGameKit.Hit.ITarget,System.Boolean) . |
TryHitComponents |
void |
Calls
PlatformerGameKit.Hit.TryHitComponent(UnityEngine.Component,System.Boolean) on each of the `targets`. |
TryHitComponents |
void |
Calls
PlatformerGameKit.Hit.TryHitComponent(UnityEngine.Component,System.Boolean) on each of the `targets`. |