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