How would you do this?
Take a look at the “Run & Jump” prefab button in the behaviors window. This adds a single jump as part of the logic by adding a switch that turns off when you jump and turns back on when you land. It is introduced as part of the tutorial:
but how to make a flappybird one?
Take away the collision with ground and take away the switch