예제 #1
0
 private void Save()
 {
     PlayerPrefX.SetVector3($"{FQN}_leftShoulderScale", leftShoulder.localScale);
     PlayerPrefX.SetVector3($"{FQN}_leftArmTouchPoint_position", leftArmTouchpoint.position);
     PlayerPrefX.SetVector3($"{FQN}_rightShoulderScale", rightShoulder.localScale);
     PlayerPrefX.SetVector3($"{FQN}_rightArmTouchPoint_position", rightArmTouchpoint.position);
 }
예제 #2
0
 private void Save()
 {
     PlayerPrefX.SetInt($"{FQN}.Length", poseValues.Length);
     for (int i = 0; i < poseValues.Length; i++)
     {
         if (poseValues[i] == null)
         {
             PlayerPrefX.SetInt($"{FQN}[{i}].Length", 0);
         }
         else
         {
             PlayerPrefX.SetInt($"{FQN}[{i}].Length", poseValues[i].Length);
             for (int j = 0; j < poseValues[i].Length; j++)
             {
                 var id = $"{FQN}[{i}][{j}]";
                 PlayerPrefX.SetVector3(id, poseValues[i][j]);
             }
         }
     }
 }