Esempio n. 1
0
        private void Update()
        {
            if (!_health.IsAlive)
            {
                return;
            }

            _move.MoveCharacter(moveDirection);
        }
Esempio n. 2
0
        private void MoveInputs()
        {
            float horizontal = _inputControl.Horizontal;

            if (horizontal == 0f)
            {
                _animator.SetBool("IsRunning", false);
            }
            else
            {
                _move.MoveCharacter(horizontal);
                _animator.SetBool("IsRunning", true);
            }
        }