C# Class ProjectileDamage, UnderworldExporter

Inheritance: MonoBehaviour
Exibir arquivo Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
Damage int
LastTarget string
Source GameObject
hasHit bool

Public Methods

Method 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 method

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

HandleImpact() public method

public HandleImpact ( GameObject other ) : void
other GameObject
return void

OnCollisionEnter() public method

public OnCollisionEnter ( Collision collision ) : void
collision Collision
return void

OnTriggerEnter() public method

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
return void

Start() public method

public Start ( ) : void
return void

Property Details

Damage public_oe property

public int Damage
return int

LastTarget public_oe property

public string LastTarget
return string

Source public_oe property

The source of the projectile. (Trap, NPC, player)
public GameObject Source
return GameObject

hasHit public_oe property

public bool hasHit
return bool