uBAD
A Behaviour and Decision library for Unity3D
|
Sleep for a number of seconds before returning Success. Variance parameter modifies the duration by a random amount. More...
Public Member Functions | |
override IEnumerator< NodeResult > | NodeTask () |
override string | ToString () |
Public Member Functions inherited from BAD.Node | |
virtual void | Apply (object[] arguments) |
virtual T | GetArg< T > (int index) |
Node () | |
IEnumerator< NodeResult > | GetNodeTask () |
virtual void | Abort () |
override string | ToString () |
Public Attributes | |
float | seconds = 1 |
float | variance = 0.1f |
Public Attributes inherited from BAD.Node | |
BADReactor | reactor |
bool | enabled = true |
NodeResult | state = null |
bool | running = false |
Branch | parent = null |
object[] | arguments |
Protected Member Functions | |
override void | ResolveArguments () |
Sleep for a number of seconds before returning Success. Variance parameter modifies the duration by a random amount.
|
inlinevirtual |
Reimplemented from BAD.Node.
|
inlineprotectedvirtual |
Reimplemented from BAD.Node.
|
inline |
float BAD.Sleep.seconds = 1 |
float BAD.Sleep.variance = 0.1f |