Take Damage

Merlins Beard . Health System . Take Damage

Serialized Fields

Damage Received :: Target . Target Event

Methods

Is Friendly ( Other Faction :: Faction )

Returns true if the other Faction is in the friendly Faction list.

Is Enemy ( Other Faction :: Faction )

Returns true if the other Faction is in the enemy Faction list.

Is Neutral ( Other Faction :: Faction )

Returns true if the other Faction is in the neutral Faction list.

Unity Methods

Start ( )

Retrieves and stores the Health component from this Game Object.

On Particle Collision ( Other :: Game Object )

Looks for a Damage component on the parent of the other Game Object. If found, deals damage to the Health of this Game Object and invokes the Damage Received event passing the Target component on the other Game Object to all listeners.