I'm having a problem that I can't seem to find a solution to, without having to rewrite everything.
Let me try to explain the problem:
I've got 2 object's data types, let's call them A and B.
I'm storing my collection of both of them inside an array (seperately).
Now those two are just for the actual data that I need. There's also another array of just indices which I use to uniquely define my objects inside the scene so they're being assigned to my objects of type A and B during instantiation (0, 1, 2 ,3 ,4, ...).
The problem I'm having right now is in the end what my function is getting is these unique IDs which then have to access the actual data inside the A and B arrays. When just instantiating one of the types A or B this works, but if I have two different arrays, and a single array with indices, how could I access those, using the indices of the unique scene ID array.
I hope this wasn't too confusing
Basically I have two different arrays that I need to access with their corresponding ID from a single array.
I have the information that the unique ids are either of type A or B and I have their corresponding array's sizes.
I just don't know how to get the corresponding ID into their arrays.
Edited by lipsryme, 19 June 2013 - 06:11 AM.