PlayerMovementController.CheckJumpState C# (CSharp) 메소드

CheckJumpState() 개인적인 메소드

private CheckJumpState ( ) : void
리턴 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();
	}