/** 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>(); }
protected override void OnEnable() { base.OnEnable(); controller = target as LeapHandController; }
void OnEnable() { controller = target as LeapHandController; }
/** Assigns the HandController parent for this FingerModel object. */ public void SetController(LeapHandController controller) { controller_ = controller; }