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
Afficher le fichier Open project: matthewAURA/SlashRunner Class Usage Examples

Méthodes publiques

Свойство Type Description
damage int

Méthodes publiques

Méthode Description
Start ( ) : void

Method Details

Start() public méthode

public Start ( ) : void
Résultat void

Property Details

damage public_oe property

The damage to be deducted from the player.
public int damage
Résultat int