quantum-space-buddies/QSB/QuantumSync/WorldObjects/QSBQuantumShuffleObject.cs
2021-12-26 21:05:07 -08:00

15 lines
433 B
C#

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