Hello, all. I’m not very familiar with coroutines, but I am trying to use a coroutine with Vector3.Lerp to move an instantiated prefab to a specific position. After it reaches the target position, I want the object to destroy itself.
I’m using Unity 2020.2 with MacOS.
Okay, folks. I edited the code to include an if statement at the end of a while (true) loop, and now it seems to work! Hopefully this works for others as well. So far my program hasn’t crashed :).