PlayerMovementController.CheckJumpState C# (CSharp) Method

CheckJumpState() private method

private CheckJumpState ( ) : void
return void
	private void CheckJumpState()
	{
		bool end = false;
		if(CurrentDirection == GO_UP && (this.transform.position.y >= posEndJump.y))
			end = true;
		if(CurrentDirection == GO_DOWN && (this.transform.position.y <= posEndJump.y))
			end = true;
		if(CurrentDirection == GO_RIGHT && (this.transform.position.x >= posEndJump.x))
			end = true;
		if(CurrentDirection == GO_LEFT && (this.transform.position.x <= posEndJump.x))
			end = true;
		if(end)
			OnPlayerEndJump();
	}