예제 #1
0
    void Awake()
    {
        InitHand();
        ChangeHandType(HandType);

        controller = FindObjectOfType <LeapHandController>();
        provider   = FindObjectOfType <LeapServiceProvider>();
    }
예제 #2
0
 /** Popuates the ModelPool with the contents of the ModelCollection */
 void Start() {
   ModelPool = new List<IHandModel>();
   for (int i = 0; i < ModelCollection.Count; i++) {
     if (ModelCollection[i] != null) {
       ModelPool.Add(ModelCollection[i]);
     }
   }
   controller_ = GetComponent<LeapHandController>();
 }
        void Start()
        {
            SetAlpha(0.0f);
            controller = handControllerPrefab.GetComponent <LeapHandController>();
            guiTexture = GetComponent <GUITexture>();

            var notice = Model.GetModel <UnityMedia <Texture> >("noHandNotice", LanguageSettingManager.GetActiveLanguage());

            guiTexture.texture = notice.Media;
        }
예제 #4
0
 /** Sets the parent HandController object. */
 public void SetController(LeapHandController controller)
 {
     controller_ = controller;
     Debug.Log("SetController:" + controller_);
     for (int i = 0; i < fingers.Length; ++i)
     {
         if (fingers[i] != null)
         {
             fingers[i].SetController(controller_);
         }
     }
 }
예제 #5
0
 void Start()
 {
     controle = FindObjectOfType <LeapHandController> ();
     //Ativa e desativa todas as mãos, por algum motivo, somente assim era possível fazer a troca de mãos sem tirar a mão da frente do LeapMotion e colocar de volta
     for (int i = 0; i < 2; i++)
     {
         for (int j = 0; j < 3; j++)
         {
             controle.transform.GetChild(i).GetChild(j).gameObject.SetActive(true);
             controle.transform.GetChild(i).GetChild(j).gameObject.SetActive(false);
         }
     }
 }
예제 #6
0
 /** Assigns the HandController parent for this FingerModel object. */
 public void SetController(LeapHandController controller)
 {
     controller_ = controller;
 }
예제 #7
0
 /** Sets the parent HandController object. */
 public void SetController(LeapHandController controller)
 {
     controller_ = controller;
     Debug.Log("SetController:" + controller_);
     for (int i = 0; i < fingers.Length; ++i) {
       if (fingers[i] != null)
     fingers[i].SetController(controller_);
     }
 }
예제 #8
0
 /** Assigns the HandController parent for this FingerModel object. */
 public void SetController(LeapHandController controller) {
   controller_ = controller;
 }
    protected override void OnEnable() {
      base.OnEnable();

      controller = target as LeapHandController;
    }
예제 #10
0
 public void SetHandController(LeapHandController hc)
 {
 }
 void OnEnable() {
   controller = target as LeapHandController;
 }
예제 #12
0
 void OnEnable()
 {
     controller = target as LeapHandController;
 }