private void ChangeAnimation(CharacterState newState) { if (currentStateAnimation != newState) { lastStateAnimation = currentStateAnimation; currentStateAnimation = newState; spriteAnimator.Reset(); } }