Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
MCAvatarController.AvatarAnimation Class Reference

randomLoop must be set up with at least one looping animation set to "isFallback". More...

Public Member Functions

 AvatarAnimation (KerbalInstructor avatar, float minDelay, float maxDelay)
 
string TriggerAnimation (AvatarState state, bool playSound=true)
 
void Update ()
 

Public Attributes

KerbalInstructor avatar
 
float maxDelay
 
float minDelay
 
List< AvatarAnimationCliprandomLoop = new List<AvatarAnimationClip>()
 

Detailed Description

randomLoop must be set up with at least one looping animation set to "isFallback".

Constructor & Destructor Documentation

MCAvatarController.AvatarAnimation.AvatarAnimation ( KerbalInstructor  avatar,
float  minDelay,
float  maxDelay 
)
inline

Member Function Documentation

string MCAvatarController.AvatarAnimation.TriggerAnimation ( AvatarState  state,
bool  playSound = true 
)
inline
void MCAvatarController.AvatarAnimation.Update ( )
inline

Member Data Documentation

KerbalInstructor MCAvatarController.AvatarAnimation.avatar
float MCAvatarController.AvatarAnimation.maxDelay
float MCAvatarController.AvatarAnimation.minDelay
List<AvatarAnimationClip> MCAvatarController.AvatarAnimation.randomLoop = new List<AvatarAnimationClip>()

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