Checks if an Object has a Component. Optionally remove the Component on exiting the state.
The Game Object to check.
The component to check for.
Remove On Exit
Remove the component on exiting the state.
Event to send if the Game Object has the component.
Event to send if the Game Object does not have the component.
Store the result in a bool variable.
Repeat every frame.