private void LateUpdate() { if (_onReachedEdge.ReachedEdge()) { _horizontal *= -1; _flipPlayer.Flip(_spriteRenderer, _horizontal); } _characterAnimation.MoveAnimation(_horizontal); }
private void LateUpdate() { if (_health.IsDead) { return; } if (_onReachedEdge.ReachedEdge()) { _direction *= -1; _flip.FlipCharacter(_direction); } }