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.
The Game Object to add the component to.
The component to add.
Remove On Exit
Remove the component when exiting this state.