Using a reference to try to stop a coroutine and then destroy the object

The idea of the code is to have an object follow a sequence path and when clicked the object will be destroyed and a reward will be given to the player. The issue I’m running into is when I just flat out destroy the object on click the tween throws some caution warning out and if I try to get a reference to the coroutine from the first script to stop it in the second script I get hit with a null reference exception: object reference not set to an instance of an object. Not sure what I am doing wrong because I should have a reference to the coroutine t using the first scripts getCoroutine method and passing it to the second script.


Figured it out, silly me didn’t assign my tag so it couldn’t find the object I was referring to