Hi all,
I’m using a lot of DOTween for some simple animations\sound management, and I usually want to disable or destroy the game object running the tween when the tween finishes, for instance, imagine a hit sequence where something scales down to zero over X amount of time, using do tween. Once the tween completes, I want to return that object to the poll. All is well, but when there are a lot of objects doing that, my console gets clogged up with “The object of type ‘X’ has been destroyed but you are still trying to access it.”
This sometimes causes objects to not be destroyed\disabled, which is also pretty bad.
Any idea on how to deal with this? What are the best practices?
Thanks