using OWML.Utils; using UnityEngine; namespace QSB.QuantumSync.WorldObjects { internal class QSBQuantumShuffleObject : QSBQuantumObject { public void ShuffleObjects(int[] indexArray) { var shuffledObjects = AttachedObject.GetValue("_shuffledObjects"); var localPositions = AttachedObject.GetValue("_localPositions"); for (var i = 0; i < shuffledObjects.Length; i++) { shuffledObjects[i].localPosition = localPositions[indexArray[i]]; } } } }