playAnimation() public méthode

Checks if a new animation is needed and if so run it.
public playAnimation ( string pAnim, int newState ) : void
pAnim string P animation.
newState int New state.
Résultat void
Exemple #1
0
 public override void update()
 {
     NPC.playAnimation(mAnim);
     stop();
 }