Joseph Muszynski IT201 451 Project 3
New Features:
Change Animation Clips
Input - Clicking Spin / Scale button
Process - A boolean value controlling whether the prefab should use its spin or grow/shrink animations will be toggled.
Output - the on screen prefab will either grow or shrink
Change Animation Speed
Input - Speed Slider
Process - The value of the slider is used to determine how fast the object’s animation will play.
Output - The on-screen objects' animations will speed up or slow down.
Change Prefabs
Input - Next / Previous Prefab button
Process - When the next / previous prefab button is clicked, the index in the prefabs' array is moved forward or backward by one, changing the displayed prefab.
Output - The next time the user presses space to instantiate one of the complex prefabs, a different one will appear on screen. On-screen text will reflect these changes.
Change between Linear or Curved animation
Input - Curved/Linear animation button
Process - A boolean to control these animation states is toggled when the button to toggle between linear or curved animation states is clicked.
Output - When a prefab's animation is active, it will either go through its animation at a constant rate (linear), or it will move at a rate that speeds up and slows down as it starts and stops moving (curved). The button's text will also change to reflect this change.
Clear Objects (extra feature)
Input - Clicking the Clear Objects button
Process - An empty GameObject declared as the parent for all spawned objects is destroyed, thereby destroying all of the spawned objects as well. A new parent is created immediately afterward.
Output - All objects spawned by the user are destroyed, and the objects' counter is reset to zero.