We are getting reference of gridManager in the Awake but the in the SetLabelColor() Method we are saying if gridManager is null then we will return Early and then we are getting GetNode() method. it causes us a null reference exception untill we say if node is null we want to return early.
But main question is if we find gridmanager in awake then it should not be Null in the SetLabelColor();
Am i missing something? I hope this question dosen’t sounds dumb i am new to unity.