UnassignedReferenceException: The variable segmentPrefab of Snake has not been assigned. You probably need to assign the segmentPrefab variable of the Snake script in the inspector.
Im making a very simple snake game where you eat the fruit and the snake multiplies and so on, when the snake eats the fruit it creates a segmentprefab clone creates but then i get this error and have no idea how to fix it? please help