//public Animator animator;

    private void Awake()
    {
        stateMachine = new StateMachine <AlexPlayerController>(this);

        playerIdleState      = new PlayerIdleState();
        playerRunningState   = new PlayerRunningState();
        playerJumpingState   = new PlayerJumpingState();
        playerFallingState   = new PlayerFallingState();
        playerAttackingState = new PlayerAttackingState();

        stateMachine.ChangeState(playerIdleState);

        rb = GetComponent <Rigidbody>();

        attackHitboxScript = attackHitboxObject.GetComponent <HitBoxController>();
    }
	public PlayerAnimationSM() {
		StatesTable["Idle"] = new PlayerIdleState();
		StatesTable["Running"] = new PlayerRunningState();
		StatesTable["BasicAttack1"] = new PlayerBasicAttack1State();
	}