This decision will return true after the specified duration, picked randomly between the min and max values (in seconds) has passed since the Brain has been in the state this decision is in. Use it to do something X seconds after having done something else.
More...
|
float | AfterTimeMin = 2f |
| The minimum duration, in seconds, after which to return true. More...
|
|
float | AfterTimeMax = 2f |
| The maximum duration, in seconds, after which to return true. More...
|
|
string | Label |
| a label you can set to organize your AI Decisions, not used by anything else More...
|
|
This decision will return true after the specified duration, picked randomly between the min and max values (in seconds) has passed since the Brain has been in the state this decision is in. Use it to do something X seconds after having done something else.
◆ Decide()
override bool MoreMountains.CorgiEngine.AIDecisionTimeInState.Decide |
( |
| ) |
|
|
virtual |
◆ EvaluateTime()
virtual bool MoreMountains.CorgiEngine.AIDecisionTimeInState.EvaluateTime |
( |
| ) |
|
|
protectedvirtual |
Returns true if enough time has passed since we entered the current state
- Returns
◆ Initialization()
override void MoreMountains.CorgiEngine.AIDecisionTimeInState.Initialization |
( |
| ) |
|
|
virtual |
◆ OnEnterState()
override void MoreMountains.CorgiEngine.AIDecisionTimeInState.OnEnterState |
( |
| ) |
|
|
virtual |
◆ RandomizeTime()
virtual void MoreMountains.CorgiEngine.AIDecisionTimeInState.RandomizeTime |
( |
| ) |
|
|
protectedvirtual |
On randomize time we randomize our next delay
◆ _randomTime
float MoreMountains.CorgiEngine.AIDecisionTimeInState._randomTime |
|
protected |
◆ AfterTimeMax
float MoreMountains.CorgiEngine.AIDecisionTimeInState.AfterTimeMax = 2f |
The maximum duration, in seconds, after which to return true.
◆ AfterTimeMin
float MoreMountains.CorgiEngine.AIDecisionTimeInState.AfterTimeMin = 2f |
The minimum duration, in seconds, after which to return true.
The documentation for this class was generated from the following file: