Skip to content

Commit b310707

Browse files
committed
docs(readme): documented Wait Time action
1 parent ee51211 commit b310707

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class ExampleUsage : MonoBehaviour {
108108
public void Awake () {
109109
var bt = new BehaviorTreeBuilder(gameObject)
110110
.Sequence()
111-
.CustomAction()
111+
.CustomAction()
112112
.End();
113113
}
114114
}
@@ -121,6 +121,7 @@ public class ExampleUsage : MonoBehaviour {
121121
+ [Actions](#actions)
122122
- [Generic](#action-generic)
123123
- [Wait](#wait)
124+
- [Wait Time](#wait-time)
124125
+ [Conditions](#conditions)
125126
- [Generic](#condition-generic)
126127
- [Random Chance](#random-chance)
@@ -181,6 +182,17 @@ Skip a number of ticks on the behavior tree.
181182
.End()
182183
```
183184

185+
#### Wait Time
186+
187+
Waits until the passed number of seconds have expired in `deltaTime`.
188+
189+
```C#
190+
.Sequence()
191+
.WaitTime(2.5f)
192+
.Do(MyAction)
193+
.End()
194+
```
195+
184196
### Conditions
185197

186198
#### Condition Generic

0 commit comments

Comments
 (0)