First part, create the Command:
- Create a GameObject, rename it as "Target".
- Add the GameFlow component.
- Add an On Demand program.
- Add a Hello World action to the program.
- Add a Command block below the On Demand program.
- Drag the On Demand into the Program field of the Command.
- Rename the Command as "Say Hello".
Second part, using the Command:
- Create another GameObject.
- Add the GameFlow component.
- Add an On Start program.
- Add a Send Command action.
- Drag the GameObject named Target into the Target field of the Send Command action.
- Set "Say Hello" as Command Id.
This is a simple example just to clarify the usage, but Commands are normally used in situations where you need to execute a Program and you can't have the reference to that Program in anticipation like sending a "Die" Command to any GameObject that collides with a trigger. In those cases you would use Send Command with the <Other> parameter as Target, like this: