Issue comes from OnGround::deleteLater: this state still active in case when object already change OnGround to Jumping, and it listen to OnAir event and creates new Falling state. Falling and Jumping listen to OnSurface event and both create new OnGround after each such a cycle the number of OnGround states for dude multiplies
Issue comes from OnGround::deleteLater: this state still active in case when object already change OnGround to Jumping, and it listen to OnAir event and creates new Falling state. Falling and Jumping listen to OnSurface event and both create new OnGround after each such a cycle the number of OnGround states for dude multiplies