I have an array of available gameObjects in the scene. An array of GO should be transformed according to received floats through UDP connection. I know it is simple, but can't figure it out how to accomplish the transformation an array of GO according to received unique floats for each GO, any help will be appreciated.
Here is a transformation floats, it might be helpful I guess:
x =ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
y= ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
z= ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
alpha= ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
theta= ReadSingleBigEndian(data,signalOffset);
signalOffset+=4;
phi= ReadSingleBigEndian(data,signalOffset);
signalOffset+=4;
Gathering information:
All I need to do is transform an array of game objects, of course I need to use some kind of loop, but the problem is I have an array of the float values divided by offset and array of the game objects and I need to transform them by assigning float values which came through udp and each of the floats is unique and belongs to exact game object.