C# Class DamagePlayerOnContact, SlashRunner

Represents how much damage a player should take on contact with this object. This object should have both Rigidbody2D and BoxCollider2D attached, and should be a trigger. The player should handle damage-taken logic, and should also be associated with a BoxCollider2D.
Inheritance: MonoBehaviour
Exibir arquivo Open project: matthewAURA/SlashRunner Class Usage Examples

Public Properties

Property Type Description
damage int

Public Methods

Method Description
Start ( ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Property Details

damage public_oe property

The damage to be deducted from the player.
public int damage
return int