public void LoadChoosedGesture()
 {
     if (listGesture._allFileName[0] != "No items!")
     {
         handMoverLeft.StopPlay();
         handMoverRight.StopPlay();
         savedData = loadData.getTransformByIndex(dropdown.value, handMoverLeft.getChirality());
         handMoverLeft.SetNewTransforms(savedData._handPosition, savedData._handRotation);
         savedData = loadData.getTransformByIndex(dropdown.value, handMoverRight.getChirality());
         handMoverRight.SetNewTransforms(savedData._handPosition, savedData._handRotation);
         handMoverLeft.StartPlay();
         handMoverRight.StartPlay();
         PlayerPrefs.SetInt("ChoosedGesture", dropdown.value);
         PlayerPrefs.Save();
         SceneManager.LoadScene("ComplitingMovement");
     }
 }
Exemplo n.º 2
0
 public void SetStop()
 {
     handMover.StopPlay();
 }