private void Update() { if (!_health.IsAlive) { return; } _move.MoveCharacter(moveDirection); }
private void MoveInputs() { float horizontal = _inputControl.Horizontal; if (horizontal == 0f) { _animator.SetBool("IsRunning", false); } else { _move.MoveCharacter(horizontal); _animator.SetBool("IsRunning", true); } }