Details
Leaf Spawning: For the leaf spawning I made a script that would spawn leaves at a random position in a circle. The script allowed the designers to tweak the spawn rate of the leaves. Besides the spawn rate, it was also possible to restrict the spawning to a quarter circle, a half circle, and a three-quarter circle. It was also possible to specify a minimum radius thus spawning leaves in adult shape. Each level also had a spawner manager. This object would control all spawners to make sure that the maximum amount of spawned leaves on the entire field would not exceed a certain threshold.
Leaf behavior/leaf blower: The leaf behavior was done by applying a velocity based on the angle between the player forward vector and the vector from the leaf to the player. Also the closer the player to the leaf the higher the magnitude of the force. A random rotation was also applied to the leaf to make a bit more visually appealing.