meniku / NPBehave

Event Driven Behavior Trees for Unity 3D
MIT License
1.15k stars 195 forks source link

RandomSequence Stop wrong children #27

Closed vanlecs09 closed 4 years ago

vanlecs09 commented 4 years ago
Children[currentIndex].Stop();

should become

 Children[randomizedOrder[currentIndex]].Stop();
meniku commented 4 years ago

thanks for the report. I fixed this and also the RandomSelector as you suggested.