Kinds-of-Intelligence-CFI / animal-ai-unity

Animal-AI Unity
https://github.com/Kinds-of-Intelligence-CFI/animal-ai
Apache License 2.0
1 stars 2 forks source link

SpawnerTree 'Clock' Discrepancy #21

Closed alhasacademy96 closed 10 months ago

alhasacademy96 commented 10 months ago

The GoalSpawner.cs script uses two separate coroutines (waitForRipening and manageRipeningGrowth) for growth and ripening, which the SpawnerTree inherits from. To make the spawn sequence more synchronous and avoid discrepancies between the coroutines (clocks in unity), the two coroutines could be merged into one to control both methods, thus avoiding the risk of timing discrepancies in the script.