This Decision will return true if its MMConeOfVision has detected at least one target, and will set it as the Brain's target.
More...
|
| override void | Initialization () |
| | On Init we grab our MMConeOfVision.
|
| override bool | Decide () |
| | On Decide we look for a target.
|
| bool | Decide () |
| | Decide will be performed every frame while the Brain is in a state this Decision is in. Should return true or false, which will then determine the transition's outcome.
|
| virtual void | OnEnterState () |
| | Meant to be overridden, called when the Brain enters a State this Decision is in.
|
| virtual void | OnExitState () |
| | Meant to be overridden, called when the Brain exits a State this Decision is in.
|
|
| virtual bool | DetectTarget () |
| | If the MMConeOfVision has at least one target, it becomes our new brain target and this decision is true, otherwise it's false.
|
| virtual void | Awake () |
| | On Awake we grab our Brain.
|
This Decision will return true if its MMConeOfVision has detected at least one target, and will set it as the Brain's target.
◆ Decide()
| override bool MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D.Decide |
( |
| ) |
|
On Decide we look for a target.
- Returns
◆ DetectTarget()
| virtual bool MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D.DetectTarget |
( |
| ) |
|
|
protectedvirtual |
If the MMConeOfVision has at least one target, it becomes our new brain target and this decision is true, otherwise it's false.
- Returns
◆ Initialization()
| override void MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D.Initialization |
( |
| ) |
|
|
virtual |
◆ SetTargetToNullIfNoneIsFound
| bool MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D.SetTargetToNullIfNoneIsFound = true |
if this is true, this decision will set the AI Brain's Target to null if no target is found
◆ TargetConeOfVision2D
| MMConeOfVision2D MoreMountains.TopDownEngine.AIDecisionDetectTargetConeOfVision2D.TargetConeOfVision2D |
the cone of vision 2D to rotate
The documentation for this class was generated from the following file: