public override void Update()
        {
            base.Update();
            _crow.setPlayerPosition(_crow.isPlayerInAggroRange());

            if (!_crow.IsIneluttable())
            {
                if (_isDetectingPlayer)
                {
                    _stateMachine.ChangeState(_crow._playerDetect);
                }
            }

            if (_isIdleTimeElapsed)
            {
                _stateMachine.ChangeState(_crow._MoveState);
            }
        }
        public override void Update()
        {
            base.Update();
            _crow.setPlayerPosition(_crow.isPlayerInAggroRange());

            if (!_crow.IsIneluttable())
            {
                if (_isDetectingPlayer)
                {
                    _stateMachine.ChangeState(_crow._playerDetect);
                }
            }

            if (_isDetectingWall)
            {
                _crow._IdleState.setFlipAfterIdle(true);
                _stateMachine.ChangeState(_crow._IdleState);
            }
            else
            {
                _crow.Move(_entityData.movementSpeed);
            }
        }