In the first picture is my parent class:
All it does is set header to "default header" and make new array of type LevelData
. When I call Setup()
, the overridden child method is called as I want it to. In the child class on Setup()
method when I print header it says "default header" as should. When I print length of the array it says 10 as it should.
But when I try to access the array I get an Object reference error. Why can I access the header and the length of the array but not the array itself?
Here is the child: