Projectile used in projectile (ranged) attacks that is controlled by physics.
More...
|
override string | Header [get] |
|
float | Charge [get, protected set] |
| Gets the charge which can be used by effects, etc. More...
|
|
int | ChargeLevel [get, protected set] |
| Gets the charge as an int which can be used by effects, etc. More...
|
|
virtual string | Header [get] |
| Gets the header string used to describe the component. More...
|
|
virtual string | DocLink [get] |
| Gets a link to documentation site. More...
|
|
virtual string | VideoLink [get] |
| Gets a link to a youtube video. More...
|
|
virtual string | Deprecated [get] |
| If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More...
|
|
System.EventHandler< EmptyEventArgs > | ProjectileFired |
| Event for when a projectile is fired. Typically used for enabling effects. More...
|
|
System.EventHandler< DamageInfoEventArgs > | ProjectileDestroyed |
| Event for when a projectile crashes in to something. If the object being crashed in to is not an enemy then the damage info will be null. More...
|
|
Projectile used in projectile (ranged) attacks that is controlled by physics.
◆ DestroyProjectile()
override void PlatformerPro.GrenadeProjectile.DestroyProjectile |
( |
bool |
isEnemyHit | ) |
|
|
virtual |
◆ DoTrigger()
virtual IEnumerator PlatformerPro.GrenadeProjectile.DoTrigger |
( |
| ) |
|
|
protectedvirtual |
Delays then sends event and enables hit box.
- Returns
- The trigger.
◆ Fire()
override void PlatformerPro.GrenadeProjectile.Fire |
( |
int |
damageAmount, |
|
|
DamageType |
damageType, |
|
|
Vector2 |
direction, |
|
|
IMob |
character, |
|
|
float |
charge = 1.0f |
|
) |
| |
|
virtual |
Call to start the projectile moving.
- Parameters
-
damageAmount | Damage amount. |
damageType | Damage type. |
direction | Direction of fire |
character | Character doing the firing. |
charge | How charged is the attack. Ignored by grenades. |
Reimplemented from PlatformerPro.Projectile.
◆ character
IMob PlatformerPro.GrenadeProjectile.character |
|
protected |
◆ grenadeTrigger
GrenadeType PlatformerPro.GrenadeProjectile.grenadeTrigger |
How does the grenade work?
◆ rigidbody2D
new Rigidbody2D PlatformerPro.GrenadeProjectile.rigidbody2D |
|
protected |
Reference to the rigidbody 2D.
◆ triggerDelay
float PlatformerPro.GrenadeProjectile.triggerDelay = 0.0f |
How long is out timer (or how long after hitting something until we explode if type == EXPLODE_ON_HIT).
◆ triggered
bool PlatformerPro.GrenadeProjectile.triggered |
|
protected |
The documentation for this class was generated from the following file:
- D:/Projects/platformer-pro-2019.3/Assets/PlatformerPro/Scripts/Attacks/Projectiles/GrenadeProjectile.cs