Heya,
So I think I stumbled onto a bug but can't seem to track it exactly down.
Basically I have a GO that holds an array of all the resources it needs (Construction Site) and also adds itself to the job list array on another GO(Empty Job Manager). A third GO (Builder Unit) then checks the Job list and finds a work site. Once found, it checks the resources needed and collects what he needs. This all works fine until the Construction Site is destroyed. Once a new site appears for the unit to check the resources again, this null error appears.
At first I figured it was my logic somewhere but a break point right before the Get Next action for the Missing Resource Array shows everything to be correct. The Builder unit has the correct GO Variable, Array Reference, Reset Flag, Ect. What really makes me think its a bug is by simple deactivating the Construction site rather then destroying it fixes this issue. It's like destroying the GO causes a Ghost reference for that Get Next array to try to find
Now I've tried to Isolate this by re-creating this in a new scene but couldn't. Has anyone else notice this happening or knows the cause that it could be?
Thanks