Let's say we are creating an array of GameObjects as we read a text file like so:
Let's say we want to add some arbitrary properties to each of our GameObjects. Let's focus on non-graphical properties to keep things clear. We parse these properties as we read each line.
The way I'm currently doing it, is to add a "blank" script to "store" the properties for each object. So, I attach the blank script and assign the properties to variables.
So, inside our reading loop, we end up with this:
Any help would be much appreciated.
asked Jan 19 '11 at 02:51 PM
Something like this pseudocode:
answered Jan 19 '11 at 03:57 PM