this code return (any other reference to transform and gameobject gives missing reference exception)
but that object exist and active in scene
Who knows what can cause such behavior and how to fix it?
and yeah i know that i had to give better names and really sorry for this.
Appeared that i destroyed that gameobject at the very beginning but before destruction that object added himself to list of DayWalls and each object that is in that list will do certain script and if that object is null that apparently doesnt give nulrefException when calling some function but gives missing ref when trying to call gameobject or transform