public void SetJointsPos(PositionMapper[] mappers)
{
for (int i = 0; i < points.Length; i++)
{
for (int j = 0; j < mappers.Length; j++)
{
if (points[i].jointType == mappers[j].jointType)
{
points[i].OnIKEnable(mappers[i]);
}
}
}
}
public void OnIKEnable(PositionMapper mappers)
{
startPos = mappers.StartPos;
point.position = mappers.StartPos;
EndPos = GameManager.Instance.levelManager.stepSequence.NextStepStartPosition;
canNotUse = mappers.CanNotUse;
if (canNotUse) SetWeightage(0);
else SetWeightage(1);
tempIKPoint = point.position;
}