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

An animator that plays animations on a SimpleCharacter from the 2D Character System. More...

Inheritance diagram for PlatformerPro.AnimationBridge_2DCharacterSystem:

Public Attributes

List< AnimationMappingmappings
 Maps from states to animation names. Anything not in the list will use the Animation.AsString() method. Animations mapped to an empty state will be ignored. 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...
 
CharacterSystem2D.SimpleCharacter myAnimator
 Cached reference to the animator. More...
 
Dictionary< AnimationState, string > mappingLookup
 Cached ditcionary of the mappings. More...
 

Detailed Description

An animator that plays animations on a SimpleCharacter from the 2D Character System.

Member Function Documentation

◆ AnimationStateChanged()

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

Handles animation state changed.

Parameters
senderSender.
argsArguments.

Member Data Documentation

◆ mappingLookup

Dictionary<AnimationState, string> PlatformerPro.AnimationBridge_2DCharacterSystem.mappingLookup
protected

Cached ditcionary of the mappings.

◆ mappings

List<AnimationMapping> PlatformerPro.AnimationBridge_2DCharacterSystem.mappings

Maps from states to animation names. Anything not in the list will use the Animation.AsString() method. Animations mapped to an empty state will be ignored.

◆ myAnimator

CharacterSystem2D.SimpleCharacter PlatformerPro.AnimationBridge_2DCharacterSystem.myAnimator
protected

Cached reference to the animator.

◆ myCharacter

IMob PlatformerPro.AnimationBridge_2DCharacterSystem.myCharacter
protected

Cached reference to the character.


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