on-internet
← Community

fishList not set to an instance of an object?

Stack Overflow ·

I'm trying to make a simple fishing game in Unity but I haven't coded in a long time. What I want to do is have this script make an array of itself and then populate the array with text I put in a text file. It seems to be getting caught up on line 27 where fishList[x].name is to be declared, but I can't figure out why. Again, what I want is for it to simply loop itself 17 times taking in each line from the text file one after the other like I arranged, and hopefully make Price into an int instead if I did that right, but I can't even get that far to test that. Any help is appreciated! using S

Comments

Sign in or sign up to comment and upvote.

No comments yet.