|
Trying to use classes inside scripts to display mutliple objects. They seem to create successfully although only the last one displays on screen, using GUI Functios for this currently. I'm stuck as to why i only see the last invader on screen and the others simply don't appear. Did some testing with Debug.Log and they all seem to be crated okay. Seems to be a sticking block for me :(
(comments are locked)
|
|
You just created one instance of your CSprite class but pushed it several times in the array. That's why all elements points to the same sprite. That's why only the last set values are used.
(comments are locked)
|
|
Thanks very much :) That's fixed it up! Don't post comments as answers please.
Jun 26 '11 at 05:36 PM
Eric5h5
(comments are locked)
|
