Health change audio source - a helper for playing sounds on Health Change
Health change sound - maps a health change to an AudioClip
A component that will play a specific AudioClip when a certain amount of damage is received.
A helper for playing random audio clips. The randomness is not uniform but rather based on weights
A WeightedAudioList contains an array of WeightedAudioClips. Individual clips can be given a higher probability of selection
Class used by the RandomAudioSource, from which an AudioClip is chosen
Class for handling health using events.
Events available for subscription:
To apply damage to the damageable the TakeDamageWithAlignment method must be called. This is primarily done through the DamageableListener.
Use this component for game objects that need to take damage. It has a Damageable field, Configuration, that handles all damage and fires off events when appropriate. The Configuration’s health and alignment fields can be set on the component or dynamically.
The Health Visualizer Prefab, is the HealthVisualizer used to communicate the health of the Configuration to the player. The Health Visualizer Offset is simply the local position of the Health VisualizerPrefab when instantiated.
The DamageableListener is a component that allows you to easily assign UnityEvents to the DamageableBehaviour’s Damager events.
A component that when collided with a Damager component will apply damage to the corresponding DamageableBehaviour.
A component required to apply damage to a DamageableBehaviour.
A component that when triggered by a Damager component will apply damage to the corresponding DamageableBehaviour.
Abstract class that receives damage and applies it to the damageable behaviour. Inherited by
DamageTrigger and DamageCollider
A struct that is passed through the Damageable’s health events.
A component used to visualize the health of a Damageable.
A class required by some damage listeners. Stores HealthChangeInfo and Vector3 for the damage point.
Static helper class to assist with calculation of common projectile ballistics problems.
List of methods:
Simple IProjectile implementation for projectile that flies in a parabolic arc. Can be configured to launch using an angle or speed.
Basic override of LinearProjectile that allows the projectile to adjust its path in-flight to intercept a designated target. Has configurable leading parameters.
Interface allowing specification of generic projectiles