// Animation public void SetAnimation(EntityAnimation newAnim) { if (anim != null) { anim.Finish(); } anim = newAnim; if (anim != null) { anim.Begin(this); } }