Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.LegacyAnimationBridge Class Reference

An animator that plays animations using the legacy 3D framework. More...

Inheritance diagram for PlatformerPro.LegacyAnimationBridge:
PlatformerPro.IAnimationBridge

Public Member Functions

virtual void Reset ()
 Reset the animation state. More...
 

Public Attributes

LegacyAnimation[] animationData
 List of animation states and animations. More...
 

Protected Member Functions

void AnimationStateChanged (object sender, AnimationEventArgs args)
 Handles animation state changed. More...
 

Protected Attributes

IMob myCharacter
 Cached reference to the character. More...
 
Animation myAnimator
 Cached reference to the animator. More...
 
AnimationState state
 The state currently playing. More...
 
Queue< AnimationStatequeuedStates
 The animation state that should play next. More...
 
int priority
 The current states priority. More...
 
Queue< int > queuedPriorities
 The queued states priority. More...
 
Dictionary< AnimationState, LegacyAnimationanimationLookup
 States stored as dictionary for quicker lookup. More...
 

Properties

virtual Animator Animator [get]
 Returns null as no animator is being used. More...
 
- Properties inherited from PlatformerPro.IAnimationBridge
Animator Animator [get]
 Gets the associated animator. Returns null if an animator is not being used. More...
 

Detailed Description

An animator that plays animations using the legacy 3D framework.

Member Function Documentation

◆ AnimationStateChanged()

void PlatformerPro.LegacyAnimationBridge.AnimationStateChanged ( object  sender,
AnimationEventArgs  args 
)
protected

Handles animation state changed.

Parameters
senderSender.
argsArguments.

◆ Reset()

virtual void PlatformerPro.LegacyAnimationBridge.Reset ( )
virtual

Reset the animation state.

Implements PlatformerPro.IAnimationBridge.

Member Data Documentation

◆ animationData

LegacyAnimation [] PlatformerPro.LegacyAnimationBridge.animationData

List of animation states and animations.

◆ animationLookup

Dictionary<AnimationState, LegacyAnimation> PlatformerPro.LegacyAnimationBridge.animationLookup
protected

States stored as dictionary for quicker lookup.

◆ myAnimator

Animation PlatformerPro.LegacyAnimationBridge.myAnimator
protected

Cached reference to the animator.

◆ myCharacter

IMob PlatformerPro.LegacyAnimationBridge.myCharacter
protected

Cached reference to the character.

◆ priority

int PlatformerPro.LegacyAnimationBridge.priority
protected

The current states priority.

◆ queuedPriorities

Queue<int> PlatformerPro.LegacyAnimationBridge.queuedPriorities
protected

The queued states priority.

◆ queuedStates

Queue<AnimationState> PlatformerPro.LegacyAnimationBridge.queuedStates
protected

The animation state that should play next.

◆ state

AnimationState PlatformerPro.LegacyAnimationBridge.state
protected

The state currently playing.

Property Documentation

◆ Animator

virtual Animator PlatformerPro.LegacyAnimationBridge.Animator
get

Returns null as no animator is being used.


The documentation for this class was generated from the following file: