C# Class ProjectileDamage, UnderworldExporter

Inheritance: MonoBehaviour
Afficher le fichier Open project: hankmorgan/UnderworldExporter Class Usage Examples

Méthodes publiques

Свойство Type Description
Damage int
LastTarget string
Source GameObject
hasHit bool

Méthodes publiques

Méthode Description
EndProjectile ( ) : IEnumerator

The projectile will only damage anything for a short period after it hits something To support bouncing around

HandleImpact ( GameObject other ) : void
OnCollisionEnter ( Collision collision ) : void
OnTriggerEnter ( Collider other ) : void

When the projectile hits anything it will applydamage if applicable or will begin to count down to losing it's damage effect Half damage is applied on richochets

Start ( ) : void

Method Details

EndProjectile() public méthode

The projectile will only damage anything for a short period after it hits something To support bouncing around
public EndProjectile ( ) : IEnumerator
Résultat IEnumerator

HandleImpact() public méthode

public HandleImpact ( GameObject other ) : void
other GameObject
Résultat void

OnCollisionEnter() public méthode

public OnCollisionEnter ( Collision collision ) : void
collision Collision
Résultat void

OnTriggerEnter() public méthode

When the projectile hits anything it will applydamage if applicable or will begin to count down to losing it's damage effect Half damage is applied on richochets
public OnTriggerEnter ( Collider other ) : void
other Collider
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Property Details

Damage public_oe property

public int Damage
Résultat int

LastTarget public_oe property

public string LastTarget
Résultat string

Source public_oe property

The source of the projectile. (Trap, NPC, player)
public GameObject Source
Résultat GameObject

hasHit public_oe property

public bool hasHit
Résultat bool