private void LoadInputModel()
 {
     inputProfileModel = inputProfileLoader.LoadModelForHand(
         loadedProfile,
         (InputProfileLoader.Handedness)controller.hand,
         HandleModelLoaded);
     if (inputProfileModel != null)
     {
         // Update input state while still loading the model
         UpdateModelInput();
     }
 }
Beispiel #2
0
 private void LoadModel(InputProfileLoader.Handedness handedness)
 {
     if (inputProfileModel != null)
     {
         Destroy(inputProfileModel.gameObject);
     }
     inputProfileModel = inputProfileLoader.LoadModelForHand(lastDownloadedProfile, handedness);
     UpdateModelRotations();
     for (int i = 0; i < buttonsSliders.Length; i++)
     {
         SetButtonValue(i);
     }
     for (int i = 0; i < axesSliders.Length; i++)
     {
         SetAxisValue(i);
     }
 }