A basic melee weapon class, that will activate a "hurt zone" when the weapon is used.
More...
A basic melee weapon class, that will activate a "hurt zone" when the weapon is used.
◆ DamageAreaShapes
the shape of the bomb's damage area
| Enumerator |
|---|
| Rectangle | |
| Circle | |
◆ DestroyBomb()
| virtual void MoreMountains.TopDownEngine.Bomb.DestroyBomb |
( |
| ) |
|
|
protectedvirtual |
◆ DisableDamageArea()
| virtual void MoreMountains.TopDownEngine.Bomb.DisableDamageArea |
( |
| ) |
|
|
protectedvirtual |
Disables the damage area.
◆ EnableDamageArea()
| virtual void MoreMountains.TopDownEngine.Bomb.EnableDamageArea |
( |
| ) |
|
|
protectedvirtual |
◆ Initialization()
| virtual void MoreMountains.TopDownEngine.Bomb.Initialization |
( |
| ) |
|
|
protectedvirtual |
◆ InstantiateExplosionEffect()
| virtual void MoreMountains.TopDownEngine.Bomb.InstantiateExplosionEffect |
( |
| ) |
|
|
protectedvirtual |
Instantiates a VFX at the bomb's position.
◆ OnEnable()
| virtual void MoreMountains.TopDownEngine.Bomb.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable, we initialize our bomb.
◆ PlayExplosionSound()
| virtual void MoreMountains.TopDownEngine.Bomb.PlayExplosionSound |
( |
| ) |
|
|
protectedvirtual |
Plays a sound on explosion.
◆ Update()
| virtual void MoreMountains.TopDownEngine.Bomb.Update |
( |
| ) |
|
|
protectedvirtual |
On update, makes our bomb flicker, activates the damage area and destroys the bomb if needed.
◆ _damageAreaActive
| bool MoreMountains.TopDownEngine.Bomb._damageAreaActive |
|
protected |
◆ _flickerColor
| Color MoreMountains.TopDownEngine.Bomb._flickerColor = new Color32(255, 20, 20, 255) |
|
protected |
◆ _flickering
| bool MoreMountains.TopDownEngine.Bomb._flickering |
|
protected |
◆ _initialColor
| Color MoreMountains.TopDownEngine.Bomb._initialColor |
|
protected |
◆ _poolableObject
◆ _propertyBlock
| MaterialPropertyBlock MoreMountains.TopDownEngine.Bomb._propertyBlock |
|
protected |
◆ _renderer
| Renderer MoreMountains.TopDownEngine.Bomb._renderer |
|
protected |
◆ _timeSinceStart
| float MoreMountains.TopDownEngine.Bomb._timeSinceStart |
|
protected |
◆ DamageAreaActiveDuration
| float MoreMountains.TopDownEngine.Bomb.DamageAreaActiveDuration = 1f |
the duration of the damage area
◆ DamageAreaCollider
| Collider2D MoreMountains.TopDownEngine.Bomb.DamageAreaCollider |
the collider of the damage area
◆ ExplosionEffect
| GameObject MoreMountains.TopDownEngine.Bomb.ExplosionEffect |
a vfx to instantiate when the bomb explodes
◆ ExplosionSfx
| AudioClip MoreMountains.TopDownEngine.Bomb.ExplosionSfx |
a sound to play when the bomb explodes
◆ FlickerSprite
| bool MoreMountains.TopDownEngine.Bomb.FlickerSprite = true |
whether or not the sprite should flicker before explosion
◆ MaterialPropertyName
| string MoreMountains.TopDownEngine.Bomb.MaterialPropertyName = "_Color" |
the name of the property that should flicker
◆ TimeBeforeExplosion
| float MoreMountains.TopDownEngine.Bomb.TimeBeforeExplosion = 2f |
the delay before the bomb explodes
◆ TimeBeforeFlicker
| float MoreMountains.TopDownEngine.Bomb.TimeBeforeFlicker = 1f |
the duration before the flicker starts
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Characters/Weapons/Bomb.cs