Closed hoangcuongzk1 closed 4 months ago
Sure, if it's busy or planning, it won't start a new thread. Right before it starts the thread, it sets the flag that says it's planning to true. So it should never start more than one planning thread at once.
Sure, if it's busy or planning, it won't start a new thread. Right before it starts the thread, it sets the flag that says it's planning to true. So it should never start more than one planning thread at once.
Anyway, this repository is perfect for me. It's very helpful for a GOAP beginner. Thank you so much! <3
I'm not good at C# Unity, but I wonder if this code is bad for performance. Creating a new thread every time Update() is called sounds like a very bad idea. Could you explain this to me?