Hi I have a script with a list containing game objects to be added later. I am trying to access this list in another script but it is throwing a null reference exception error. Even checking if list is null throws an error. Please help.
1st script:
public List<GameObject> walkablePathObjects = new List <GameObject>();
2nd script:
[SerializeField] PathfindingToolScript pathfindingToolScript;
if (pathfindingToolScript.walkablePathObjects == null){
return;
}