示例#1
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_);
         }
     }
 }
 /** 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>();
 }
示例#3
0
        protected override void OnEnable()
        {
            base.OnEnable();

            controller = target as LeapHandController;
        }
 void OnEnable()
 {
     controller = target as LeapHandController;
 }
示例#5
0
 /** Assigns the HandController parent for this FingerModel object. */
 public void SetController(LeapHandController controller)
 {
     controller_ = controller;
 }