The target is to get gameobjects names and vectors, quaternions axis from an XML file and map axis to gameObjects names.
The exact problem is: mapping GameObjects to its axis and assigning a value to this axis to move mapped GameObjects according their axis. XML side: I can read every Name and MapTo attributes, but I don't know how to map the Name and MapTo attributes to each other in the way where I can assign the values to axis of mapped GameObjects.
<GameObject Name="Cube" MapTo="x"></GameObject>//x-y are vector axis
<GameObject Name="Cube" MapTo="y"></GameObject>
<GameObject Name="Cube" MapTo="z"></GameObject>
<GameObject Name="Cube" MapTo="a"></GameObject>//a-z are quaternion's axis
<GameObject Name="Cube" MapTo="b"></GameObject>
<GameObject Name="Cube" MapTo="c"></GameObject>
<GameObject Name="Capsule" MapTo="a"></GameObject>
<GameObject Name="Capsule" MapTo="c"></GameObject>
<GameObject Name="Cylinder" MapTo="x"></GameObject>
I don't know what to try, but I want to have something to work with. Is there a way to accomplish this?