playAnimation() public method

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.
return void
Example #1
0
 public override void update()
 {
     NPC.playAnimation(mAnim);
     stop();
 }