In my game, the player has the ability to pause the game or increase the speed to 2X, 4X etc...
I'm unsure what the correct way is to control the speed (ticking) of the behavior trees.
Where's what I think is the correct way:
1. Add a GameObject to the scene, call it "Behavior Manager".
2. Add the "Behavior Manager" component to that GameObject.
3. Set the Update Interval to Manual.
4. Inside of my time management script, update the tree on every custom tick (every 0.2 seconds) by calling "BehaviorManager.instance.Tick();", which will now update all of the trees.
Now, I should be able to pause the game or increase the speed, which will change the rate of my custom ticking, which will in turn slow down or speed up the behavior trees, correct?
PS: The reason I don't set the Update Interval to Every Frame is because I'm using a special modifier instead of directly changing Time.timeScale.
I'm unsure what the correct way is to control the speed (ticking) of the behavior trees.
Where's what I think is the correct way:
1. Add a GameObject to the scene, call it "Behavior Manager".
2. Add the "Behavior Manager" component to that GameObject.
3. Set the Update Interval to Manual.
4. Inside of my time management script, update the tree on every custom tick (every 0.2 seconds) by calling "BehaviorManager.instance.Tick();", which will now update all of the trees.
Now, I should be able to pause the game or increase the speed, which will change the rate of my custom ticking, which will in turn slow down or speed up the behavior trees, correct?
PS: The reason I don't set the Update Interval to Every Frame is because I'm using a special modifier instead of directly changing Time.timeScale.