void Start()
 {
     renderer        = GetComponent <SpriteRenderer>();
     battleCharacter = GetComponent <BattleCharacter>();
     InitSprite(Resources.LoadAll <Sprite>("Characters/" + spriteName));
     currentDirection = battleCharacter.Direction;
     coroutine        = StartCoroutine(Animation(Utility.GetDirectionIndex(currentDirection)));
 }
    private void FixedUpdate()
    {
        var direction = battleCharacter.Direction;

        if (currentDirection != direction)
        {
            currentDirection = direction;
            StopCoroutine(coroutine);
            coroutine = StartCoroutine(Animation(Utility.GetDirectionIndex(direction)));
        }
    }