12-02-2021, 09:41 PM
Hello Curvy folks!
I hope there's a simple solution for what I need to do:
I have a generator that creates game objects along the spline (imagine sleepers on a train track). As these objects are created, they add themselves to an array. So far so good.
However, if I delete a Control Point, I need a way to send an event to the sleepers that are being removed, so that they can remove themselves from the array before destroying themselves.
I appreciate any advice!
I hope there's a simple solution for what I need to do:
I have a generator that creates game objects along the spline (imagine sleepers on a train track). As these objects are created, they add themselves to an array. So far so good.
However, if I delete a Control Point, I need a way to send an event to the sleepers that are being removed, so that they can remove themselves from the array before destroying themselves.
I appreciate any advice!