PlayerMovementController.CheckJumpState C# (CSharp) Méthode

CheckJumpState() private méthode

private CheckJumpState ( ) : void
Résultat 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();
	}