Adds a Component to a Game Object. Use this to change the behaviour of objects on the fly. Optionally remove the Component on exiting the state.
Game Object
The Game Object to add the component to.
Script
The component to add.
Remove On Exit
Remove the component when exiting this state.