![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
An 'animator' that plays sounds when the character enters certain states. More...
Public Member Functions | |
void | Reset () |
Called when the animator is changed. More... | |
Public Attributes | |
List< SoundEffectMapping > | mappings |
Maps from states to animator overrides. More... | |
Protected Member Functions | |
void | Init () |
Initialise this animation bridge. More... | |
void | AnimationStateChanged (object sender, AnimationEventArgs args) |
Handles animation state changed. More... | |
IEnumerator | RepeatSound (SoundEffectMapping se) |
Play the sound at an interval. More... | |
Protected Attributes | |
IMob | myCharacter |
Cached reference to the character. More... | |
Properties | |
Animator | Animator [get] |
Gets the associated animator. Returns null if an animator is not being used. More... | |
![]() | |
Animator | Animator [get] |
Gets the associated animator. Returns null if an animator is not being used. More... | |
An 'animator' that plays sounds when the character enters certain states.
|
protected |
Handles animation state changed.
sender | Sender. |
args | Arguments. |
|
protected |
Initialise this animation bridge.
|
protected |
Play the sound at an interval.
effect | Effect to play. |
time | The interval. |
void PlatformerPro.SoundEffect_Bridge.Reset | ( | ) |
Called when the animator is changed.
Implements PlatformerPro.IAnimationBridge.
List<SoundEffectMapping> PlatformerPro.SoundEffect_Bridge.mappings |
Maps from states to animator overrides.
|
protected |
Cached reference to the character.
|
get |
Gets the associated animator. Returns null if an animator is not being used.