helper action that toggles state of target behaviour More...
Public Member Functions | |
override void | Perform (IContext context) |
helper action that toggles state of target behaviour
If you have a script that you want enabled when the action is chosen, and disabled when not, this helper action is useful.
Actions don't normally get callbacks for not being chosen, so this finds the main DecisionFlex object and connects to its OnNewAction event.
|
inlinevirtual |
Called once DecisionFlex has decided you can run.
[in] | context | the IContext in which DecisionFlex decided to run this action |
Implements TenPN.DecisionFlex.Action.