Jumping script

trying to limit infinite jumping for my game on Unity3d