|
TopDown Engine v4.5
|
This decision will return true if the character is grounded, false otherwise. More...
Public Member Functions | |
| override void | Initialization () |
| On init we grab our TopDownController component. | |
| override bool | Decide () |
| On Decide we check if we're grounded. | |
| override void | OnEnterState () |
| On Enter State we reset our start time. | |
| Public Member Functions inherited from MoreMountains.Tools.AIDecision | |
| 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 | OnExitState () |
| Meant to be overridden, called when the Brain exits a State this Decision is in. | |
Public Attributes | |
| float | GroundedBufferDelay = 0.2f |
| The duration, in seconds, after entering the state this Decision is in during which we'll ignore being grounded. | |
| Public Attributes inherited from MoreMountains.Tools.AIDecision | |
| string | Label |
| a label you can set to organize your AI Decisions, not used by anything else | |
Protected Member Functions | |
| virtual bool | EvaluateGrounded () |
| Checks whether the character is grounded. | |
| Protected Member Functions inherited from MoreMountains.Tools.AIDecision | |
| virtual void | Awake () |
| On Awake we grab our Brain. | |
Protected Attributes | |
| TopDownController | _topDownController |
| float | _startTime = 0f |
| Protected Attributes inherited from MoreMountains.Tools.AIDecision | |
| AIBrain | _brain |
Additional Inherited Members | |
| Properties inherited from MoreMountains.Tools.AIDecision | |
| virtual bool | DecisionInProgress [get, set] |
This decision will return true if the character is grounded, false otherwise.
| override bool MoreMountains.TopDownEngine.AIDecisionGrounded.Decide | ( | ) |
On Decide we check if we're grounded.
|
protectedvirtual |
Checks whether the character is grounded.
|
virtual |
On init we grab our TopDownController component.
Reimplemented from MoreMountains.Tools.AIDecision.
|
virtual |
On Enter State we reset our start time.
Reimplemented from MoreMountains.Tools.AIDecision.
|
protected |
|
protected |
| float MoreMountains.TopDownEngine.AIDecisionGrounded.GroundedBufferDelay = 0.2f |
The duration, in seconds, after entering the state this Decision is in during which we'll ignore being grounded.