uBAD
A Behaviour and Decision library for Unity3D
|
Behaviour and Decision Library for Unity
Root { Once { BB set time 0.5 } MutatingSelector { WhileBoth BADTester.CheckSomeCondition { Sequence { UntilSuccess { ! BadTester.DoSomeLongTask } Chance 0.5 { Log "Booya." } } }
Sequence { Sleep time, 0.5 ? BADTester.CheckSomeCondition ! BADTester.DoSomeLongTask RandomSelector { Sleep time, 0 ? BADTester.CheckSomeCondition Cooldown 3 { Invert { UntilFailure { ! BADTester.DoSomeLongTask } } } } WaitFor BADTester.CheckSomeCondition { Loop 3 { ! BADTester.DoSomeLongTask } } } } }